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