Class ConstructorInstanceProviderAttribute
Automatically attached to generated methods depending on runtime behavior.
You should not use this directly.
Inheritance
Implements
Namespace: Cesil
Assembly: Cesil.dll
Syntax
public sealed class ConstructorInstanceProviderAttribute : Attribute, IEquatable<ConstructorInstanceProviderAttribute>
Constructors
ConstructorInstanceProviderAttribute(Type, Type, Int32)
Create a new ConstructorInstanceProviderAttribute.
You should not use this directly.
Declaration
public ConstructorInstanceProviderAttribute(Type forType, Type parameterType, int index)
Parameters
Type | Name | Description |
---|---|---|
System. |
forType | |
System. |
parameterType | |
System. |
index |
Properties
ForType
Type that declares the constructor.
Declaration
public TypeInfo ForType { get; }
Property Value
Type | Description |
---|---|
System. |
ParameterIndex
Index of the parameter that corresponds to this attribute.
Declaration
public int ParameterIndex { get; }
Property Value
Type | Description |
---|---|
System. |
ParameterType
Type of one of the parameter that corresponds to this attribute.
Declaration
public TypeInfo ParameterType { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
Equals(ConstructorInstanceProviderAttribute)
Returns true if the given ConstructorInstanceProviderAttribute is equal to this one.
Declaration
public bool Equals(ConstructorInstanceProviderAttribute attribute)
Parameters
Type | Name | Description |
---|---|---|
Constructor |
attribute |
Returns
Type | Description |
---|---|
System. |
Equals(Object)
Return true if the given object is a ConstructorInstanceProviderAttribute equal to this one.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System. |
obj |
Returns
Type | Description |
---|---|
System. |
GetHashCode()
Returns a stable hash code for this ConstructorInstanceProviderAttribute.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System. |
ToString()
Returns a representation of this ConstructorInstanceProviderAttribute object.
Only for debugging, this value is not guaranteed to be stable.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |
Operators
Equality(ConstructorInstanceProviderAttribute, ConstructorInstanceProviderAttribute)
Compare two ConstructorInstanceProviderAttributes for equality
Declaration
public static bool operator ==(ConstructorInstanceProviderAttribute a, ConstructorInstanceProviderAttribute b)
Parameters
Type | Name | Description |
---|---|---|
Constructor |
a | |
Constructor |
b |
Returns
Type | Description |
---|---|
System. |
Inequality(ConstructorInstanceProviderAttribute, ConstructorInstanceProviderAttribute)
Compare two ConstructorInstanceProviderAttributes for inequality
Declaration
public static bool operator !=(ConstructorInstanceProviderAttribute a, ConstructorInstanceProviderAttribute b)
Parameters
Type | Name | Description |
---|---|---|
Constructor |
a | |
Constructor |
b |
Returns
Type | Description |
---|---|
System. |