3 instantiations of ConstantHandle
System.Reflection.Metadata (3)
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (3)
1897return new ConstantHandle(rowId); 1917return new ConstantHandle(handle.RowId); 1927return new ConstantHandle(handle.RowId);
35 references to ConstantHandle
Microsoft.CodeAnalysis (3)
MetadataReader\PEModule.cs (3)
3581var constantHandle = MetadataReader.GetParameter(param).GetDefaultValue(); 3598var constantHandle = MetadataReader.GetFieldDefinition(fieldDef).GetDefaultValue(); 3696private ConstantValue GetConstantValueOrThrow(ConstantHandle handle)
Microsoft.CodeAnalysis.Test.Utilities (1)
Metadata\MetadataReaderUtils.cs (1)
26internal static IEnumerable<ConstantHandle> GetConstants(this MetadataReader reader)
System.Reflection.Metadata (28)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (2)
665public ConstantHandle AddConstant(EntityHandle parent, object? value) 680return ConstantHandle.FromRowId(_constantTable.Count);
System\Reflection\Metadata\Ecma335\MetadataTokens.cs (2)
445public static ConstantHandle ConstantHandle(int rowNumber) 447return Metadata.ConstantHandle.FromRowId(ToRowId(rowNumber));
System\Reflection\Metadata\Internal\Tables.cs (5)
712internal ConstantTypeCode GetType(ConstantHandle handle) 718internal BlobHandle GetValue(ConstantHandle handle) 724internal EntityHandle GetParent(ConstantHandle handle) 730internal ConstantHandle FindConstant(EntityHandle parentHandle) 740return ConstantHandle.FromRowId(foundRowNumber + 1);
System\Reflection\Metadata\MetadataReader.cs (1)
1202public Constant GetConstant(ConstantHandle handle)
System\Reflection\Metadata\TypeSystem\Constant.cs (2)
24private ConstantHandle Handle 28return ConstantHandle.FromRowId(_rowId);
System\Reflection\Metadata\TypeSystem\FieldDefinition.cs (1)
91public ConstantHandle GetDefaultValue()
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (13)
1883public readonly struct ConstantHandle : IEquatable<ConstantHandle> 1895internal static ConstantHandle FromRowId(int rowId) 1900public static implicit operator Handle(ConstantHandle handle) 1905public static implicit operator EntityHandle(ConstantHandle handle) 1910public static explicit operator ConstantHandle(Handle handle) 1920public static explicit operator ConstantHandle(EntityHandle handle) 1940public static bool operator ==(ConstantHandle left, ConstantHandle right) 1947return obj is ConstantHandle && ((ConstantHandle)obj)._rowId == _rowId; 1950public bool Equals(ConstantHandle other) 1960public static bool operator !=(ConstantHandle left, ConstantHandle right)
System\Reflection\Metadata\TypeSystem\Parameter.cs (1)
53public ConstantHandle GetDefaultValue()
System\Reflection\Metadata\TypeSystem\PropertyDefinition.cs (1)
62public ConstantHandle GetDefaultValue()
System.Reflection.MetadataLoadContext (3)
System\Reflection\TypeLoading\General\Ecma\EcmaDefaultValueProcessing.cs (1)
12public static object? ToRawObject(this ConstantHandle constantHandle, MetadataReader metadataReader)
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (1)
19public static Constant GetConstant(this ConstantHandle handle, MetadataReader reader) => reader.GetConstant(handle);
System\Reflection\TypeLoading\Parameters\Ecma\EcmaFatMethodParameter.cs (1)
55ConstantHandle ch = Parameter.GetDefaultValue();