Class GeneratedSourceVersionAttribute

Automatically attached to generated types to track compatibility.

You should not use this directly.

Inheritance
System.Object
GeneratedSourceVersionAttribute
Implements
System.IEquatable<GeneratedSourceVersionAttribute>
Namespace: Cesil
Assembly: Cesil.dll
Syntax
public sealed class GeneratedSourceVersionAttribute : Attribute, IEquatable<GeneratedSourceVersionAttribute>

Constructors

GeneratedSourceVersionAttribute(String, Type, GeneratedSourceVersionAttribute.GeneratedTypeKind)

Construct a new GeneratedSourceVersionAttribute.

Declaration
public GeneratedSourceVersionAttribute(string version, Type forType, GeneratedSourceVersionAttribute.GeneratedTypeKind kind)
Parameters
Type Name Description
System.String version
System.Type forType
GeneratedSourceVersionAttribute.GeneratedTypeKind kind

Properties

ForType

The type associated with generated code.

You should not use this directly.

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

Kind

The kind of operation this type is intended to support.

You should not use this directly.

Declaration
public GeneratedSourceVersionAttribute.GeneratedTypeKind Kind { get; }
Property Value
Type Description
GeneratedSourceVersionAttribute.GeneratedTypeKind

Version

The version of Cesil the associated source was generated for.

You should not use this directly.

Declaration
public string Version { get; }
Property Value
Type Description
System.String

Methods

Equals(GeneratedSourceVersionAttribute)

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

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

Equals(Object)

Return true if the given object is a GeneratedSourceVersionAttribute 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 GeneratedSourceVersionAttribute.

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

ToString()

Returns a representation of this GeneratedSourceVersionAttribute object.

Only for debugging, this value is not guaranteed to be stable.

Declaration
public override string ToString()
Returns
Type Description
System.String

Operators

Equality(GeneratedSourceVersionAttribute, GeneratedSourceVersionAttribute)

Compare two GeneratedSourceVersionAttributes for equality

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

Inequality(GeneratedSourceVersionAttribute, GeneratedSourceVersionAttribute)

Compare two GeneratedSourceVersionAttributes for inequality

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

Implements

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