PublicApiMetadataOrigin Class

Identifies the metadata entity a symbol was read from. A metadata token is only meaningful within the module that owns it, so it is always paired with the module version ID (MVID). Tokens are not stable across builds.

public sealed class PublicApiMetadataOrigin : IEquatable<PublicApiMetadataOrigin>
Implements

Constructors

NameDescription
PublicApiMetadataOrigin(Guid, string, int)Identifies the metadata entity a symbol was read from. A metadata token is only meaningful within the module that owns it, so it is always paired with the module version ID (MVID). Tokens are not stable across builds.

PublicApiMetadataOrigin(Guid, string, int)

PublicApiMetadataOrigin.cs

Identifies the metadata entity a symbol was read from. A metadata token is only meaningful within the module that owns it, so it is always paired with the module version ID (MVID). Tokens are not stable across builds.

public PublicApiMetadataOrigin(Guid ModuleVersionId, string ModuleName, int MetadataToken)

Parameters

ModuleVersionId Guid
The MVID of the module that defines the entity.
ModuleName string
The name of the module that defines the entity (e.g. MyLibrary.dll).
MetadataToken int
The metadata token of the entity (e.g. a TypeDef, MethodDef, Field, Property or Event token).

Properties

NameDescription
MetadataTokenThe metadata token of the entity (e.g. a TypeDef, MethodDef, Field, Property or Event token).
ModuleNameThe name of the module that defines the entity (e.g. MyLibrary.dll).
ModuleVersionIdThe MVID of the module that defines the entity.

The metadata token of the entity (e.g. a TypeDef, MethodDef, Field, Property or Event token).

public int MetadataToken { get; init; }

Property value

int

The name of the module that defines the entity (e.g. MyLibrary.dll).

public string ModuleName { get; init; }

Property value

string

The MVID of the module that defines the entity.

public Guid ModuleVersionId { get; init; }

Property value

Guid

Methods

NameDescription
Deconstruct(Guid, string, int)
Equals(PublicApiMetadataOrigin?)
Equals(object?)
GetHashCode()
ToString()

Deconstruct(Guid, string, int)

public void Deconstruct(out Guid ModuleVersionId, out string ModuleName, out int MetadataToken)

Parameters

ModuleVersionId Guid
ModuleName string
MetadataToken int

No documentation is available.

Equals overloads

Equals(PublicApiMetadataOrigin?)

public bool Equals(PublicApiMetadataOrigin? other)
Parameters
other PublicApiMetadataOrigin?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(PublicApiMetadataOrigin?, PublicApiMetadataOrigin?)
operator !=(PublicApiMetadataOrigin?, PublicApiMetadataOrigin?)

operator ==(PublicApiMetadataOrigin?, PublicApiMetadataOrigin?)

public static bool operator ==(PublicApiMetadataOrigin? left, PublicApiMetadataOrigin? right)

No documentation is available.

operator !=(PublicApiMetadataOrigin?, PublicApiMetadataOrigin?)

public static bool operator !=(PublicApiMetadataOrigin? left, PublicApiMetadataOrigin? right)

No documentation is available.