Class ConstructorInstanceProviderAttribute

Automatically attached to generated methods depending on runtime behavior.

You should not use this directly.

Inheritance
System.Object
ConstructorInstanceProviderAttribute
Implements
System.IEquatable<ConstructorInstanceProviderAttribute>
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.Type forType
System.Type parameterType
System.Int32 index

Properties

ForType

Type that declares the constructor.

Declaration
public TypeInfo ForType { get; }
Property Value
Type Description
System.Reflection.TypeInfo

ParameterIndex

Index of the parameter that corresponds to this attribute.

Declaration
public int ParameterIndex { get; }
Property Value
Type Description
System.Int32

ParameterType

Type of one of the parameter that corresponds to this attribute.

Declaration
public TypeInfo ParameterType { get; }
Property Value
Type Description
System.Reflection.TypeInfo

Methods

Equals(ConstructorInstanceProviderAttribute)

Returns true if the given ConstructorInstanceProviderAttribute is equal to this one.

Declaration
public bool Equals(ConstructorInstanceProviderAttribute attribute)
Parameters
Type Name Description
ConstructorInstanceProviderAttribute attribute
Returns
Type Description
System.Boolean

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.Object obj
Returns
Type Description
System.Boolean

GetHashCode()

Returns a stable hash code for this ConstructorInstanceProviderAttribute.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

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.String

Operators

Equality(ConstructorInstanceProviderAttribute, ConstructorInstanceProviderAttribute)

Compare two ConstructorInstanceProviderAttributes for equality

Declaration
public static bool operator ==(ConstructorInstanceProviderAttribute a, ConstructorInstanceProviderAttribute b)
Parameters
Type Name Description
ConstructorInstanceProviderAttribute a
ConstructorInstanceProviderAttribute b
Returns
Type Description
System.Boolean

Inequality(ConstructorInstanceProviderAttribute, ConstructorInstanceProviderAttribute)

Compare two ConstructorInstanceProviderAttributes for inequality

Declaration
public static bool operator !=(ConstructorInstanceProviderAttribute a, ConstructorInstanceProviderAttribute b)
Parameters
Type Name Description
ConstructorInstanceProviderAttribute a
ConstructorInstanceProviderAttribute b
Returns
Type Description
System.Boolean

Implements

System.IEquatable<>
In This Article
Back to top Generated by DocFX