Redigera

Dela via


MetadataUpdateOriginalTypeAttribute Class

Definition

Emitted by the compiler when a type that's marked with CreateNewOnMetadataUpdateAttribute is updated during a hot reload session.

public ref class MetadataUpdateOriginalTypeAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=false)]
public class MetadataUpdateOriginalTypeAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=false)>]
type MetadataUpdateOriginalTypeAttribute = class
    inherit Attribute
Public Class MetadataUpdateOriginalTypeAttribute
Inherits Attribute
Inheritance
MetadataUpdateOriginalTypeAttribute
Attributes

Remarks

This attribute is emitted by Roslyn when a type that's marked with (or derives from a type that's marked with) CreateNewOnMetadataUpdateAttribute is updated during a hot reload session. OriginalType points to the original version of the updated type. The next update of the type will have the same OriginalType. Frameworks that provide support for hot reload by implementing a MetadataUpdateHandlerAttribute can use this attribute to relate an updated type to its original version.

Constructors

MetadataUpdateOriginalTypeAttribute(Type)

Initializes a new instance of the MetadataUpdateOriginalTypeAttribute class.

Properties

OriginalType

Gets the original version of the type that this attribtue is attached to.

TypeId

When implemented in a derived class, gets a unique identifier for this Attribute.

(Inherited from Attribute)

Methods

Equals(Object)

Returns a value that indicates whether this instance is equal to a specified object.

(Inherited from Attribute)
GetHashCode()

Returns the hash code for this instance.

(Inherited from Attribute)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
IsDefaultAttribute()

When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.

(Inherited from Attribute)
Match(Object)

When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.

(Inherited from Attribute)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to