ChildParameter Struct
Represents a parameter that is associated with a child element in the XML binding schema.
public record struct ChildParameter : IEquatable<ChildParameter>
- Inheritance
- Implements
Constructors
Child |
Represents a parameter that is associated with a child element in the XML binding schema. |
Properties
Unit |
The type of the unit represented by this parameter. This type must be a class attributed with ForElementAttribute. |
Schema |
The schema type that describes how the parameter is mapped and processed in the schema. |
Element |
The qualified name of the XML element associated with the |
Info |
The ParameterInfo instance that provides metadata about the parameter. |
Schema |
Gets a mapping from attribute types to their corresponding schema types. |
Attribute |
Gets the collection of attribute types that are supported for schema mapping. |
Methods
To |
Gets the SchemaType associated with the specified attribute type. |
Of(Parameter |
Creates a ChildParameter instance from the specified ParameterInfo. |
Equals(object) |
(Inherited from Value |
GetHashCode() |
(Inherited from Value |
ToString() |
(Inherited from Value |
GetType() | (Inherited from object) |
MemberwiseClone() | (Inherited from object) |
Constructors Detail
ChildParameter(Type, SchemaType, XmlQualifiedName, ParameterInfo)
Represents a parameter that is associated with a child element in the XML binding schema.
public ChildParameter(Type UnitType, SchemaType SchemaType, XmlQualifiedName ElementName, ParameterInfo Info)
Parameters
- UnitType
- Type
The type of the unit represented by this parameter. This type must be a class attributed with ForElementAttribute.
- SchemaType
-
Schema
Type
The schema type that describes how the parameter is mapped and processed in the schema.
- ElementName
-
Xml
Qualified Name
The qualified name of the XML element associated with the UnitType
.
- Info
-
Parameter
Info
The ParameterInfo instance that provides metadata about the parameter.
Properties Detail
UnitType
The type of the unit represented by this parameter. This type must be a class attributed with ForElementAttribute.
public Type UnitType { get; set; }
Property Value
SchemaType
The schema type that describes how the parameter is mapped and processed in the schema.
public SchemaType SchemaType { get; set; }
Property Value
ElementName
The qualified name of the XML element associated with the UnitType
.
public XmlQualifiedName ElementName { get; set; }
Property Value
Info
The ParameterInfo instance that provides metadata about the parameter.
public ParameterInfo Info { get; set; }
Property Value
SchemaTypeMap
Gets a mapping from attribute types to their corresponding schema types.
public static IReadOnlyDictionary<Type, SchemaType> SchemaTypeMap { get; }
Property Value
AttributeTypes
Gets the collection of attribute types that are supported for schema mapping.
public static IReadOnlyCollection<Type> AttributeTypes { get; }
Property Value
Methods Detail
ToSchemaType(Type)
Gets the SchemaType associated with the specified attribute type.
public static SchemaType ToSchemaType(Type type)
Parameters
- type
- Type
The attribute type.
Returns
The corresponding SchemaType, or null
if the type
is not mapped.
Of(ParameterInfo, QNameBank)
Creates a ChildParameter instance from the specified ParameterInfo.
public static ChildParameter Of(ParameterInfo p, QNameBank nameBank)
Parameters
The parameter information.
Returns
A ChildParameter representing the parameter.