Dependency Struct

Represents a dependency for XML binding that specifies whether an element has inner text or child elements.

C#
public record struct Dependency : IEquatable<Dependency>
Inheritance
Dependency
Implements

Constructors

Dependency(bool, IEnumerable<ChildParameter>)

Represents a dependency for XML binding that specifies whether an element has inner text or child elements.

Properties

HasInnerText

A boolean value indicating whether the element can contain inner text. If this is true, the ChildParameters collection must be empty.

ChildParameters

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.

InnerText

Gets a dependency that has inner text but no child parameters.

Methods

Of(IEnumerable<ChildParameter>)

Creates a dependency with the specified child parameters and no inner text.

Equals(object) (Inherited from ValueType)
GetHashCode() (Inherited from ValueType)
ToString() (Inherited from ValueType)
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.

C#
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<ChildParameter>

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.

C#
public bool HasInnerText { get; set; }

Property Value

ChildParameters

A collection of child parameters that define the expected child elements and their binding behavior.

C#
public IEnumerable<ChildParameter> ChildParameters { get; set; }

Property Value

Empty

Gets an empty dependency with no inner text and no child parameters.

C#
public static Dependency Empty { get; }

Property Value

InnerText

Gets a dependency that has inner text but no child parameters.

C#
public static Dependency InnerText { get; }

Property Value

Methods Detail

Of(IEnumerable<ChildParameter>)

Creates a dependency with the specified child parameters and no inner text.

C#
public static Dependency Of(IEnumerable<ChildParameter> childParameters)

Parameters

childParameters
IEnumerable<ChildParameter>

The collection of child parameters.

Returns

A new Dependency instance.