3 instantiations of ConstantHandle
System.Reflection.Metadata (3)
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (3)
1898return new ConstantHandle(rowId); 1918return new ConstantHandle(handle.RowId); 1928return new ConstantHandle(handle.RowId);
42 references to ConstantHandle
ILCompiler.Compiler (2)
Compiler\UserDefinedTypeDescriptor.cs (2)
469ConstantHandle defaultValueHandle = fieldDef.GetDefaultValue(); 478private static ulong HandleConstant(EcmaModule module, ConstantHandle constantHandle)
ILCompiler.MetadataTransform (4)
ILCompiler\Metadata\Transform.Constant.cs (1)
16private MetadataRecord HandleConstant(Cts.Ecma.EcmaModule module, Ecma.ConstantHandle constantHandle)
ILCompiler\Metadata\Transform.Field.cs (1)
65Ecma.ConstantHandle defaultValueHandle = fieldDef.GetDefaultValue();
ILCompiler\Metadata\Transform.Method.cs (1)
98Ecma.ConstantHandle defaultValue = param.GetDefaultValue();
ILCompiler\Metadata\Transform.Property.cs (1)
80Ecma.ConstantHandle defaultValue = propDef.GetDefaultValue();
Microsoft.CodeAnalysis (3)
MetadataReader\PEModule.cs (3)
3618var constantHandle = MetadataReader.GetParameter(param).GetDefaultValue(); 3635var constantHandle = MetadataReader.GetFieldDefinition(fieldDef).GetDefaultValue(); 3733private ConstantValue GetConstantValueOrThrow(ConstantHandle handle)
Microsoft.Diagnostics.DataContractReader.Legacy (2)
MetaDataImportImpl.cs (2)
633ConstantHandle constHandle = fieldDef.GetDefaultValue(); 1573ConstantHandle constHandle = param.GetDefaultValue();
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)
1201public Constant GetConstant(ConstantHandle handle)
System\Reflection\Metadata\TypeSystem\Constant.cs (2)
19private ConstantHandle Handle 23return ConstantHandle.FromRowId(_rowId);
System\Reflection\Metadata\TypeSystem\FieldDefinition.cs (1)
90public ConstantHandle GetDefaultValue()
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (13)
1884public readonly struct ConstantHandle : IEquatable<ConstantHandle> 1896internal static ConstantHandle FromRowId(int rowId) 1901public static implicit operator Handle(ConstantHandle handle) 1906public static implicit operator EntityHandle(ConstantHandle handle) 1911public static explicit operator ConstantHandle(Handle handle) 1921public static explicit operator ConstantHandle(EntityHandle handle) 1941public static bool operator ==(ConstantHandle left, ConstantHandle right) 1948return obj is ConstantHandle && ((ConstantHandle)obj)._rowId == _rowId; 1951public bool Equals(ConstantHandle other) 1961public static bool operator !=(ConstantHandle left, ConstantHandle right)
System\Reflection\Metadata\TypeSystem\Parameter.cs (1)
48public ConstantHandle GetDefaultValue()
System\Reflection\Metadata\TypeSystem\PropertyDefinition.cs (1)
58public 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();