Dependency Struct
Represents a dependency for XML binding that specifies whether an element has inner text or child elements.
public record struct Dependency : IEquatable<Dependency>
- Inheritance
- Implements
Constructors
Dependency(bool, IEnumerable<Child |
Represents a dependency for XML binding that specifies whether an element has inner text or child elements. |
Properties
Has |
A boolean value indicating whether the element can contain inner text. If
this is |
Child |
A collection of child parameters that define the expected child elements and their binding behavior. |
Empty |
Gets an empty dependency with no inner text and no child parameters. |
Inner |
Gets a dependency that has inner text but no child parameters. |
Methods
Of(IEnumerable<Child |
Creates a dependency with the specified child parameters and no inner text. |
Equals(object) |
(Inherited from Value |
GetHashCode() |
(Inherited from Value |
ToString() |
(Inherited from Value |
GetType() | (Inherited from object) |
MemberwiseClone() | (Inherited from object) |
Constructors Detail
Dependency(bool, IEnumerable<ChildParameter>)
Represents a dependency for XML binding that specifies whether an element has inner text or child elements.
public Dependency(bool HasInnerText, IEnumerable<ChildParameter> ChildParameters)
Parameters
- HasInnerText
- bool
A boolean value indicating whether the element can contain inner text. If
this is true
, the ChildParameters collection must be
empty.
- ChildParameters
-
IEnumerable<Child
Parameter >
A collection of child parameters that define the expected child elements and their binding behavior.
Properties Detail
HasInnerText
A boolean value indicating whether the element can contain inner text. If
this is true
, the ChildParameters collection must be
empty.
public bool HasInnerText { get; set; }
Property Value
ChildParameters
A collection of child parameters that define the expected child elements and their binding behavior.
public IEnumerable<ChildParameter> ChildParameters { get; set; }
Property Value
Empty
Gets an empty dependency with no inner text and no child parameters.
public static Dependency Empty { get; }
Property Value
InnerText
Gets a dependency that has inner text but no child parameters.
public static Dependency InnerText { get; }
Property Value
Methods Detail
Of(IEnumerable<ChildParameter>)
Creates a dependency with the specified child parameters and no inner text.
public static Dependency Of(IEnumerable<ChildParameter> childParameters)
Parameters
- childParameters
-
IEnumerable<Child
Parameter >
The collection of child parameters.
Returns
A new Dependency instance.