Class DeserializerInstanceProviderAttribute
When using Cesil's Source Generator (see Nuget.org for Cesil.SourceGenerator) marks a constructor as the InstanceProvider for the containing type.
To use a method instead of a constructor, use the InstanceProviderType and InstanceProviderMethodName properties on [GenerateDeserializableAttribute].
Inheritance
Implements
Namespace: Cesil
Assembly: Cesil.dll
Syntax
public sealed class DeserializerInstanceProviderAttribute : Attribute, IEquatable<DeserializerInstanceProviderAttribute>
Constructors
DeserializerInstanceProviderAttribute()
Create a DeserializerInstanceProviderAttribute attribute.
Declaration
public DeserializerInstanceProviderAttribute()
Methods
Equals(DeserializerInstanceProviderAttribute)
Returns true if the given DeserializerInstanceProviderAttribute is equal to this one.
Declaration
public bool Equals(DeserializerInstanceProviderAttribute attribute)
Parameters
Type | Name | Description |
---|---|---|
DeserializerInstanceProviderAttribute | attribute |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
Return true if the given object is a DeserializerInstanceProviderAttribute 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 DeserializerInstanceProviderAttribute.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
ToString()
Returns a representation of this DeserializerInstanceProviderAttribute object.
Only for debugging, this value is not guaranteed to be stable.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Operators
Equality(DeserializerInstanceProviderAttribute, DeserializerInstanceProviderAttribute)
Compare two DeserializerInstanceProviderAttributes for equality
Declaration
public static bool operator ==(DeserializerInstanceProviderAttribute a, DeserializerInstanceProviderAttribute b)
Parameters
Type | Name | Description |
---|---|---|
DeserializerInstanceProviderAttribute | a | |
DeserializerInstanceProviderAttribute | b |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(DeserializerInstanceProviderAttribute, DeserializerInstanceProviderAttribute)
Compare two DeserializerInstanceProviderAttributes for inequality
Declaration
public static bool operator !=(DeserializerInstanceProviderAttribute a, DeserializerInstanceProviderAttribute b)
Parameters
Type | Name | Description |
---|---|---|
DeserializerInstanceProviderAttribute | a | |
DeserializerInstanceProviderAttribute | b |
Returns
Type | Description |
---|---|
System.Boolean |