EntityHandle 结构

定义

表示元数据实体(如类型引用、类型定义、类型规范、方法定义或自定义特性)。Represents a metadata entity (such as a type reference, type definition, type specification, method definition, or custom attribute).

public value class EntityHandle : IEquatable<System::Reflection::Metadata::EntityHandle>
public struct EntityHandle : IEquatable<System.Reflection.Metadata.EntityHandle>
type EntityHandle = struct
Public Structure EntityHandle
Implements IEquatable(Of EntityHandle)
继承
EntityHandle
实现

注解

使用 EntityHandle 存储多种类型的实体句柄。Use EntityHandle to store multiple kinds of entity handles. 它的内存占用量小于 HandleIt has a smaller memory footprint than Handle.

字段

AssemblyDefinition
ModuleDefinition

属性

IsNil
Kind

方法

Equals(EntityHandle)

返回一个值,该值指示当前实例与指定的 EntityHandle 是否相等。Returns a value that indicates whether the current instance and the specified EntityHandle are equal.

Equals(Object)

返回一个值,该值指示当前实例与指定的对象是否相等。Returns a value that indicates whether the current instance and the specified object are equal.

GetHashCode()

返回此实例的哈希代码。Returns the hash code for this instance.

运算符

Equality(EntityHandle, EntityHandle)
Explicit(Handle to EntityHandle)
Implicit(EntityHandle to Handle)
Inequality(EntityHandle, EntityHandle)

适用于