AttributeParameter Struct

Represents a constructor parameter associated with an XML attribute, as specified by a ForAttributeAttribute.

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

Constructors

AttributeParameter(XmlQualifiedName, ParameterInfo)

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(ConstructorInfo, QNameBank)

Gets a collection of AttributeParameter instances for constructor parameters attributed with ForAttributeAttribute within the specified constructor.

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

C#
public AttributeParameter(XmlQualifiedName Name, ParameterInfo Info)

Parameters

Name
XmlQualifiedName

The qualified name of the XML attribute associated with the parameter.

Info
ParameterInfo

The ParameterInfo instance containing metadata about the parameter.

Properties Detail

Name

The qualified name of the XML attribute associated with the parameter.

C#
public XmlQualifiedName Name { get; set; }

Property Value

Info

The ParameterInfo instance containing metadata about the parameter.

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

C#
public static IEnumerable<AttributeParameter> Of(ConstructorInfo ctor, QNameBank nameBank)

Parameters

ctor
ConstructorInfo

The constructor to analyze.

nameBank
QNameBank

The QNameBank instance used to intern XML qualified names.

Returns

A collection of AttributeParameter instances for constructor parameters marked with ForAttributeAttribute.