AttributeParameter Struct
Represents a constructor parameter associated with an XML attribute, as specified by a ForAttributeAttribute.
public record struct AttributeParameter : IEquatable<AttributeParameter>
- Inheritance
- Implements
Constructors
|
Attribute |
Represents a constructor parameter associated with an XML attribute, as specified by a ForAttributeAttribute. |
Properties
| Name |
The qualified name of the XML attribute associated with the parameter. |
| Info |
The ParameterInfo instance containing metadata about the parameter. |
Methods
|
Of(Constructor |
Gets a collection of AttributeParameter instances for constructor parameters attributed with ForAttributeAttribute within the specified constructor. |
| Equals(object) |
(Inherited from Value |
| GetHashCode() |
(Inherited from Value |
| ToString() |
(Inherited from Value |
| GetType() | (Inherited from object) |
| MemberwiseClone() | (Inherited from object) |
Constructors Detail
AttributeParameter(XmlQualifiedName, ParameterInfo)
Represents a constructor parameter associated with an XML attribute, as specified by a ForAttributeAttribute.
public AttributeParameter(XmlQualifiedName Name, ParameterInfo Info)
Parameters
- Name
-
Xml
Qualified Name
The qualified name of the XML attribute associated with the parameter.
- Info
-
Parameter
Info
The ParameterInfo instance containing metadata about the parameter.
Properties Detail
Name
The qualified name of the XML attribute associated with the parameter.
public XmlQualifiedName Name { get; set; }
Property Value
Info
The ParameterInfo instance containing metadata about the parameter.
public ParameterInfo Info { get; set; }
Property Value
Methods Detail
Of(ConstructorInfo, QNameBank)
Gets a collection of AttributeParameter instances for constructor parameters attributed with ForAttributeAttribute within the specified constructor.
public static IEnumerable<AttributeParameter> Of(ConstructorInfo ctor, QNameBank nameBank)
Parameters
- ctor
-
Constructor
Info
The constructor to analyze.
Returns
A collection of AttributeParameter instances for constructor parameters marked with ForAttributeAttribute.