7 instantiations of StringHandle
System.Reflection.Metadata (7)
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (7)
2309
return new
StringHandle
(StringHandleType.String | (uint)heapOffset);
2315
return new
StringHandle
(StringHandleType.VirtualString | (uint)virtualIndex);
2320
return new
StringHandle
(StringHandleType.VirtualString | (uint)virtualIndex);
2326
return new
StringHandle
(StringHandleType.WinRTPrefixedString | _value);
2332
return new
StringHandle
(StringHandleType.DotTerminatedString | _value);
2339
return new
StringHandle
(StringHandleType.String | (_value + (uint)prefixByteLength));
2358
return new
StringHandle
(
525 references to StringHandle
Crossgen2Tasks (2)
PrepareForReadyToRunCompilation.cs (2)
444
StringHandle
attributeTypeName = default;
445
StringHandle
attributeTypeNamespace = default;
Microsoft.Cci.Extensions (1)
Extensions\CSharp\CSharpCciExtensions.cs (1)
916
private static unsafe bool Equals(this
StringHandle
handle, ReadOnlySpan<byte> other, SRMetadataReader reader)
Microsoft.CodeAnalysis (32)
MetadataReader\MetadataDecoder.cs (2)
1723
StringHandle
namespaceHandle;
1724
StringHandle
nameHandle;
MetadataReader\MetadataReaderExtensions.cs (2)
99
StringHandle
name,
100
StringHandle
culture,
MetadataReader\PEModule.cs (15)
497
internal string GetFullNameOrThrow(
StringHandle
namespaceHandle,
StringHandle
nameHandle)
2752
StringHandle
ctorTypeNamespace;
2753
StringHandle
ctorTypeName;
2954
StringHandle
name;
2955
StringHandle
ns;
3060
StringHandle
ctorName = memberRef.Name;
3104
internal bool GetAttributeNamespaceAndName(EntityHandle typeDefOrRef, out
StringHandle
namespaceHandle, out
StringHandle
nameHandle)
3114
private static bool GetAttributeNamespaceAndName(MetadataReader metadataReader, EntityHandle typeDefOrRef, out
StringHandle
namespaceHandle, out
StringHandle
nameHandle)
3116
nameHandle = default(
StringHandle
);
3117
namespaceHandle = default(
StringHandle
);
3856
StringHandle
ns = exportedType.Namespace;
3974
private static bool StringEquals(MetadataReader metadataReader,
StringHandle
nameHandle, string name, bool ignoreCase)
MetadataReference\AssemblyIdentityUtils.cs (1)
30
StringHandle
cultureHandle = assemblyDefinition.Culture;
PEWriter\MetadataWriter.cs (12)
1315
private
StringHandle
GetStringHandleForPathAndCheckLength(string path, INamedEntity errorEntity = null)
1321
private
StringHandle
GetStringHandleForNameAndCheckLength(string name, INamedEntity errorEntity = null)
1336
private
StringHandle
GetStringHandleForNamespaceAndCheckLength(INamespaceTypeReference namespaceType, string mangledTypeName)
1341
return default(
StringHandle
);
2238
StringHandle
typeName;
2239
StringHandle
typeNamespace;
2260
typeNamespace = default(
StringHandle
);
2482
StringHandle
importName = entryPointName != null && entryPointName != methodDef.Name
2783
@namespace: (namespaceType != null) ? GetStringHandleForNamespaceAndCheckLength(namespaceType, metadataTypeName) : default(
StringHandle
),
2831
StringHandle
name;
2832
StringHandle
@namespace;
2856
@namespace = default(
StringHandle
);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
30
StringHandle
cultureHandle = assemblyDefinition.Culture;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenFunctionPointersTests.cs (3)
12614
culture: default(
StringHandle
),
12622
culture: default(
StringHandle
),
12727
default(
StringHandle
),
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (8)
Emit\EditAndContinue\EditAndContinueTestBase.cs (7)
206
internal static void CheckNames(MetadataReader reader, IEnumerable<
StringHandle
> handles, params string[] expectedNames)
209
internal static void CheckNames(IEnumerable<MetadataReader> readers, IEnumerable<
StringHandle
> handles, params string[] expectedNames)
212
internal static void CheckNames(IReadOnlyList<MetadataReader> readers, IEnumerable<(
StringHandle
Namespace,
StringHandle
Name)> handles, params string[] expectedNames)
230
public static void CheckStringValue(IList<MetadataReader> readers,
StringHandle
valueHandle, string expectedValue)
234
var
genHandle = (
StringHandle
)aggregator.GetGenerationHandle(valueHandle, out int blobGeneration);
Emit\EditAndContinue\EditAndContinueTests.cs (1)
325
var
s = MetadataTokens.StringHandle(0);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Attributes\AttributeTests_WellKnownAttributes.cs (1)
2694
var
moduleRefName = metadataReader.GetModuleReference(metadataReader.GetModuleReferences().Single()).Name;
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (3)
MetadataDecoder.cs (1)
250
private QualifiedTypeSignature GetNamespace(
StringHandle
namespaceHandle)
MetadataResolver.cs (2)
225
StringHandle
memberName,
276
private bool MatchesMemberName(in
StringHandle
memberName, string name)
Microsoft.CodeAnalysis.Test.Utilities (21)
Metadata\AggregatedMetadataReader.cs (2)
43
public string GetString(
StringHandle
handle) => GetValue(handle, (r, h) => r.GetString((
StringHandle
)h));
Metadata\MetadataReaderUtils.cs (17)
87
public static string GetString(this IEnumerable<MetadataReader> readers,
StringHandle
handle)
102
public static string[] GetStrings(this IEnumerable<MetadataReader> readers, IEnumerable<
StringHandle
> handles)
112
public static
StringHandle
[] GetAssemblyRefNames(this MetadataReader reader)
117
public static
StringHandle
[] GetTypeDefNames(this MetadataReader reader)
122
public static (
StringHandle
Namespace,
StringHandle
Name)[] GetTypeDefFullNames(this MetadataReader reader)
131
public static
StringHandle
[] GetTypeRefNames(this MetadataReader reader)
136
public static
StringHandle
[] GetEventDefNames(this MetadataReader reader)
141
public static
StringHandle
[] GetFieldDefNames(this MetadataReader reader)
146
public static
StringHandle
[] GetMethodDefNames(this MetadataReader reader)
151
public static
StringHandle
[] GetMemberRefNames(this MetadataReader reader)
156
public static
StringHandle
[] GetParameterDefNames(this MetadataReader reader)
161
public static
StringHandle
[] GetPropertyDefNames(this MetadataReader reader)
166
public static
StringHandle
GetName(this MetadataReader reader, EntityHandle token)
230
var
strHandle = reader.GetName(parent);
394
string getQualifiedName(
StringHandle
leftHandle,
StringHandle
rightHandle)
Metadata\MetadataValidation.cs (2)
33
var
name = metadataReader.GetTypeReference((TypeReferenceHandle)container).Name;
39
var
name = metadataReader.GetTypeDefinition(container).Name;
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (7)
Emit\EditAndContinue\EditAndContinueTestBase.vb (7)
247
Friend Shared Sub CheckNames(reader As MetadataReader, [handles] As IEnumerable(Of
StringHandle
), ParamArray expectedNames As String())
251
Friend Shared Sub CheckNames(readers As MetadataReader(), [handles] As IEnumerable(Of
StringHandle
), ParamArray expectedNames As String())
260
Friend Shared Sub CheckNamesSorted(readers As MetadataReader(), [handles] As IEnumerable(Of
StringHandle
), ParamArray expectedNames As String())
270
getName As Func(Of MetadataReader, Handle,
StringHandle
),
282
Dim genNameHandle = CType(aggregator.GetGenerationHandle(nameHandle, nameGeneration),
StringHandle
)
296
Public Shared Sub CheckStringValue(readers As IList(Of MetadataReader), valueHandle As
StringHandle
, expectedValue As String)
300
Dim genHandle = CType(aggregator.GetGenerationHandle(valueHandle, generation),
StringHandle
)
Microsoft.CodeAnalysis.Workspaces (3)
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (2)
54
private static string GetMetadataNameWithoutBackticks(MetadataReader reader,
StringHandle
name)
625
StringHandle
namespaceHandle,
src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
30
StringHandle
cultureHandle = assemblyDefinition.Culture;
Microsoft.DotNet.GenFacades (2)
GenPartialFacadeSourceGenerator.cs (2)
132
private static string GetTypeName(
StringHandle
namespaceHandle,
StringHandle
typeHandle, MetadataReader reader)
Microsoft.DotNet.SignTool (2)
src\Configuration.cs (2)
627
bool qualifiedNameEquals(
StringHandle
nameHandle,
StringHandle
namespaceHandle)
Roslyn.Test.PdbUtilities (9)
EditAndContinue\EditAndContinueTest.GenerationVerifier.cs (1)
66
private void AssertEntityNamesEqual(string entityKinds, string[] expected,
StringHandle
[] actual)
EditAndContinue\EditAndContinueTestUtilities.cs (8)
78
public static void CheckNames(MetadataReader reader, IEnumerable<
StringHandle
> handles, params string[] expectedNames)
83
public static void CheckNames(IEnumerable<MetadataReader> readers, IEnumerable<
StringHandle
> handles, params string[] expectedNames)
89
public static void CheckNames(IReadOnlyList<MetadataReader> readers, IEnumerable<(
StringHandle
Namespace,
StringHandle
Name)> handles, params string[] expectedNames)
104
Func<MetadataReader, Handle,
StringHandle
> getName,
113
var
nameHandle = getName(readers[typeGeneration], genEntityHandle);
115
var
genNameHandle = (
StringHandle
)aggregator.GetGenerationHandle(nameHandle, out int nameGeneration);
RunTests (1)
AssemblyScheduler.cs (1)
359
var
typeNameHandle = metadataReader.GetTypeReference((TypeReferenceHandle)ctor.Parent).Name;
System.Diagnostics.FileVersionInfo (7)
System\Diagnostics\FileVersionInfo.Unix.cs (7)
128
StringHandle
typeNamespaceHandle = default(
StringHandle
), typeNameHandle = default(
StringHandle
);
254
private static bool TryGetAttributeName(MetadataReader reader, CustomAttribute attr, out
StringHandle
typeNamespaceHandle, out
StringHandle
typeNameHandle)
279
typeNamespaceHandle = default(
StringHandle
);
280
typeNameHandle = default(
StringHandle
);
System.Reflection.Metadata (412)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (13)
40
private readonly Dictionary<string,
StringHandle
> _strings = new Dictionary<string,
StringHandle
>(256);
176
internal static int SerializeHandle(ImmutableArray<int> map,
StringHandle
handle) => map[handle.GetWriterVirtualIndex()];
441
public
StringHandle
GetOrAddString(string value)
448
StringHandle
handle;
451
handle = default(
StringHandle
);
455
handle =
StringHandle
.FromWriterVirtualIndex(_strings.Count + 1); // idx 0 is reserved for empty string
536
Dictionary<string,
StringHandle
> strings,
540
var sorted = new List<KeyValuePair<string,
StringHandle
>>(strings);
553
foreach (KeyValuePair<string,
StringHandle
> entry in sorted)
580
private sealed class SuffixSort : IComparer<KeyValuePair<string,
StringHandle
>>
584
public int Compare(KeyValuePair<string,
StringHandle
> xPair, KeyValuePair<string,
StringHandle
> yPair)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (48)
17
private struct AssemblyRefTableRow { public Version Version; public BlobHandle PublicKeyToken; public
StringHandle
Name; public
StringHandle
Culture; public uint Flags; public BlobHandle HashValue; }
18
private struct ModuleRow { public ushort Generation; public
StringHandle
Name; public GuidHandle ModuleVersionId; public GuidHandle EncId; public GuidHandle EncBaseId; }
19
private struct AssemblyRow { public uint HashAlgorithm; public Version Version; public ushort Flags; public BlobHandle AssemblyKey; public
StringHandle
AssemblyName; public
StringHandle
AssemblyCulture; }
26
private struct EventRow { public ushort EventFlags; public
StringHandle
Name; public int EventType; }
28
private struct ExportedTypeRow { public uint Flags; public int TypeDefId; public
StringHandle
TypeName; public
StringHandle
TypeNamespace; public int Implementation; }
32
private struct FieldDefRow { public ushort Flags; public
StringHandle
Name; public BlobHandle Signature; }
33
private struct FileTableRow { public uint Flags; public
StringHandle
FileName; public BlobHandle HashValue; }
35
private struct GenericParamRow { public ushort Number; public ushort Flags; public int Owner; public
StringHandle
Name; }
36
private struct ImplMapRow { public ushort MappingFlags; public int MemberForwarded; public
StringHandle
ImportName; public int ImportScope; }
38
private struct ManifestResourceRow { public uint Offset; public uint Flags; public
StringHandle
Name; public int Implementation; }
39
private struct MemberRefRow { public int Class; public
StringHandle
Name; public BlobHandle Signature; }
43
private struct MethodRow { public int BodyOffset; public ushort ImplFlags; public ushort Flags; public
StringHandle
Name; public BlobHandle Signature; public int ParamList; }
44
private struct ModuleRefRow { public
StringHandle
Name; }
46
private struct ParamRow { public ushort Flags; public ushort Sequence; public
StringHandle
Name; }
48
private struct PropertyRow { public ushort PropFlags; public
StringHandle
Name; public BlobHandle Type; }
49
private struct TypeDefRow { public uint Flags; public
StringHandle
Name; public
StringHandle
Namespace; public int Extends; public int FieldList; public int MethodList; }
50
private struct TypeRefRow { public int ResolutionScope; public
StringHandle
Name; public
StringHandle
Namespace; }
58
private struct LocalVariableRow { public ushort Attributes; public ushort Index; public
StringHandle
Name; }
59
private struct LocalConstantRow { public
StringHandle
Name; public BlobHandle Signature; }
360
StringHandle
moduleName,
388
StringHandle
name,
390
StringHandle
culture,
419
StringHandle
name,
421
StringHandle
culture,
462
StringHandle
@namespace,
463
StringHandle
name,
568
StringHandle
@namespace,
569
StringHandle
name)
607
public PropertyDefinitionHandle AddProperty(PropertyAttributes attributes,
StringHandle
name, BlobHandle signature)
635
public EventDefinitionHandle AddEvent(EventAttributes attributes,
StringHandle
name, EntityHandle type)
782
public ModuleReferenceHandle AddModuleReference(
StringHandle
moduleName)
799
public ParameterHandle AddParameter(ParameterAttributes attributes,
StringHandle
name, int sequenceNumber)
832
StringHandle
name,
881
StringHandle
name,
988
StringHandle
name,
1024
StringHandle
name,
1076
StringHandle
name,
1099
StringHandle
name,
1115
StringHandle
name,
1140
StringHandle
@namespace,
1141
StringHandle
name,
1296
public LocalVariableHandle AddLocalVariable(LocalVariableAttributes attributes, int index,
StringHandle
name)
1320
public LocalConstantHandle AddLocalConstant(
StringHandle
name, BlobHandle signature)
System\Reflection\Metadata\Ecma335\MetadataReaderExtensions.cs (2)
271
public static
StringHandle
GetNextHandle(this MetadataReader reader,
StringHandle
handle)
System\Reflection\Metadata\Ecma335\MetadataTokens.cs (3)
187
public static int GetHeapOffset(
StringHandle
handle) => handle.IsVirtual ? -1 : handle.GetHeapOffset();
504
public static
StringHandle
StringHandle(int offset)
506
return Metadata.
StringHandle
.FromOffset(offset);
System\Reflection\Metadata\Internal\NamespaceCache.cs (8)
75
private
StringHandle
GetSimpleName(NamespaceDefinitionHandle fullNamespaceHandle, int segmentIndex = int.MaxValue)
77
StringHandle
handleContainingSegment = fullNamespaceHandle.GetFullName();
98
return
StringHandle
.FromOffset(resultIndex).WithDotTermination();
223
StringHandle
simpleName = GetSimpleName(realChild, numberOfSegments);
345
StringHandle
name = GetSimpleName(namespaceHandle);
378
StringHandle
simpleName = GetSimpleName(namespaceHandle);
413
public readonly
StringHandle
Name;
422
public NamespaceDataBuilder(NamespaceDefinitionHandle handle,
StringHandle
name, string fullName)
System\Reflection\Metadata\Internal\NamespaceData.cs (2)
10
public readonly
StringHandle
Name;
18
StringHandle
name,
System\Reflection\Metadata\Internal\StringHeap.cs (92)
29
var values = new string[(int)
StringHandle
.VirtualIndex.Count];
30
values[(int)
StringHandle
.VirtualIndex.System_Runtime_WindowsRuntime] = "System.Runtime.WindowsRuntime";
31
values[(int)
StringHandle
.VirtualIndex.System_Runtime] = "System.Runtime";
32
values[(int)
StringHandle
.VirtualIndex.System_ObjectModel] = "System.ObjectModel";
33
values[(int)
StringHandle
.VirtualIndex.System_Runtime_WindowsRuntime_UI_Xaml] = "System.Runtime.WindowsRuntime.UI.Xaml";
34
values[(int)
StringHandle
.VirtualIndex.System_Runtime_InteropServices_WindowsRuntime] = "System.Runtime.InteropServices.WindowsRuntime";
35
values[(int)
StringHandle
.VirtualIndex.System_Numerics_Vectors] = "System.Numerics.Vectors";
37
values[(int)
StringHandle
.VirtualIndex.Dispose] = "Dispose";
39
values[(int)
StringHandle
.VirtualIndex.AttributeTargets] = "AttributeTargets";
40
values[(int)
StringHandle
.VirtualIndex.AttributeUsageAttribute] = "AttributeUsageAttribute";
41
values[(int)
StringHandle
.VirtualIndex.Color] = "Color";
42
values[(int)
StringHandle
.VirtualIndex.CornerRadius] = "CornerRadius";
43
values[(int)
StringHandle
.VirtualIndex.DateTimeOffset] = "DateTimeOffset";
44
values[(int)
StringHandle
.VirtualIndex.Duration] = "Duration";
45
values[(int)
StringHandle
.VirtualIndex.DurationType] = "DurationType";
46
values[(int)
StringHandle
.VirtualIndex.EventHandler1] = "EventHandler`1";
47
values[(int)
StringHandle
.VirtualIndex.EventRegistrationToken] = "EventRegistrationToken";
48
values[(int)
StringHandle
.VirtualIndex.Exception] = "Exception";
49
values[(int)
StringHandle
.VirtualIndex.GeneratorPosition] = "GeneratorPosition";
50
values[(int)
StringHandle
.VirtualIndex.GridLength] = "GridLength";
51
values[(int)
StringHandle
.VirtualIndex.GridUnitType] = "GridUnitType";
52
values[(int)
StringHandle
.VirtualIndex.ICommand] = "ICommand";
53
values[(int)
StringHandle
.VirtualIndex.IDictionary2] = "IDictionary`2";
54
values[(int)
StringHandle
.VirtualIndex.IDisposable] = "IDisposable";
55
values[(int)
StringHandle
.VirtualIndex.IEnumerable] = "IEnumerable";
56
values[(int)
StringHandle
.VirtualIndex.IEnumerable1] = "IEnumerable`1";
57
values[(int)
StringHandle
.VirtualIndex.IList] = "IList";
58
values[(int)
StringHandle
.VirtualIndex.IList1] = "IList`1";
59
values[(int)
StringHandle
.VirtualIndex.INotifyCollectionChanged] = "INotifyCollectionChanged";
60
values[(int)
StringHandle
.VirtualIndex.INotifyPropertyChanged] = "INotifyPropertyChanged";
61
values[(int)
StringHandle
.VirtualIndex.IReadOnlyDictionary2] = "IReadOnlyDictionary`2";
62
values[(int)
StringHandle
.VirtualIndex.IReadOnlyList1] = "IReadOnlyList`1";
63
values[(int)
StringHandle
.VirtualIndex.KeyTime] = "KeyTime";
64
values[(int)
StringHandle
.VirtualIndex.KeyValuePair2] = "KeyValuePair`2";
65
values[(int)
StringHandle
.VirtualIndex.Matrix] = "Matrix";
66
values[(int)
StringHandle
.VirtualIndex.Matrix3D] = "Matrix3D";
67
values[(int)
StringHandle
.VirtualIndex.Matrix3x2] = "Matrix3x2";
68
values[(int)
StringHandle
.VirtualIndex.Matrix4x4] = "Matrix4x4";
69
values[(int)
StringHandle
.VirtualIndex.NotifyCollectionChangedAction] = "NotifyCollectionChangedAction";
70
values[(int)
StringHandle
.VirtualIndex.NotifyCollectionChangedEventArgs] = "NotifyCollectionChangedEventArgs";
71
values[(int)
StringHandle
.VirtualIndex.NotifyCollectionChangedEventHandler] = "NotifyCollectionChangedEventHandler";
72
values[(int)
StringHandle
.VirtualIndex.Nullable1] = "Nullable`1";
73
values[(int)
StringHandle
.VirtualIndex.Plane] = "Plane";
74
values[(int)
StringHandle
.VirtualIndex.Point] = "Point";
75
values[(int)
StringHandle
.VirtualIndex.PropertyChangedEventArgs] = "PropertyChangedEventArgs";
76
values[(int)
StringHandle
.VirtualIndex.PropertyChangedEventHandler] = "PropertyChangedEventHandler";
77
values[(int)
StringHandle
.VirtualIndex.Quaternion] = "Quaternion";
78
values[(int)
StringHandle
.VirtualIndex.Rect] = "Rect";
79
values[(int)
StringHandle
.VirtualIndex.RepeatBehavior] = "RepeatBehavior";
80
values[(int)
StringHandle
.VirtualIndex.RepeatBehaviorType] = "RepeatBehaviorType";
81
values[(int)
StringHandle
.VirtualIndex.Size] = "Size";
82
values[(int)
StringHandle
.VirtualIndex.System] = "System";
83
values[(int)
StringHandle
.VirtualIndex.System_Collections] = "System.Collections";
84
values[(int)
StringHandle
.VirtualIndex.System_Collections_Generic] = "System.Collections.Generic";
85
values[(int)
StringHandle
.VirtualIndex.System_Collections_Specialized] = "System.Collections.Specialized";
86
values[(int)
StringHandle
.VirtualIndex.System_ComponentModel] = "System.ComponentModel";
87
values[(int)
StringHandle
.VirtualIndex.System_Numerics] = "System.Numerics";
88
values[(int)
StringHandle
.VirtualIndex.System_Windows_Input] = "System.Windows.Input";
89
values[(int)
StringHandle
.VirtualIndex.Thickness] = "Thickness";
90
values[(int)
StringHandle
.VirtualIndex.TimeSpan] = "TimeSpan";
91
values[(int)
StringHandle
.VirtualIndex.Type] = "Type";
92
values[(int)
StringHandle
.VirtualIndex.Uri] = "Uri";
93
values[(int)
StringHandle
.VirtualIndex.Vector2] = "Vector2";
94
values[(int)
StringHandle
.VirtualIndex.Vector3] = "Vector3";
95
values[(int)
StringHandle
.VirtualIndex.Vector4] = "Vector4";
96
values[(int)
StringHandle
.VirtualIndex.Windows_Foundation] = "Windows.Foundation";
97
values[(int)
StringHandle
.VirtualIndex.Windows_UI] = "Windows.UI";
98
values[(int)
StringHandle
.VirtualIndex.Windows_UI_Xaml] = "Windows.UI.Xaml";
99
values[(int)
StringHandle
.VirtualIndex.Windows_UI_Xaml_Controls_Primitives] = "Windows.UI.Xaml.Controls.Primitives";
100
values[(int)
StringHandle
.VirtualIndex.Windows_UI_Xaml_Media] = "Windows.UI.Xaml.Media";
101
values[(int)
StringHandle
.VirtualIndex.Windows_UI_Xaml_Media_Animation] = "Windows.UI.Xaml.Media.Animation";
102
values[(int)
StringHandle
.VirtualIndex.Windows_UI_Xaml_Media_Media3D] = "Windows.UI.Xaml.Media.Media3D";
116
Debug.Assert(s_virtualValues[i] != null, $"Missing virtual value for StringHandle.VirtualIndex.{(
StringHandle
.VirtualIndex)i}");
147
internal string GetString(
StringHandle
handle, MetadataStringDecoder utf8Decoder)
152
internal MemoryBlock GetMemoryBlock(
StringHandle
handle)
157
internal static string GetVirtualString(
StringHandle
.VirtualIndex index)
162
private string GetNonVirtualString(
StringHandle
handle, MetadataStringDecoder utf8Decoder, byte[]? prefixOpt)
170
private unsafe MemoryBlock GetNonVirtualStringMemoryBlock(
StringHandle
handle)
181
private unsafe byte[] GetNonVirtualStringBytes(
StringHandle
handle, byte[] prefix)
192
private string GetVirtualHandleString(
StringHandle
handle, MetadataStringDecoder utf8Decoder)
204
private MemoryBlock GetVirtualHandleMemoryBlock(
StringHandle
handle)
226
internal BlobReader GetBlobReader(
StringHandle
handle)
231
internal
StringHandle
GetNextHandle(
StringHandle
handle)
235
return default(
StringHandle
);
241
return default(
StringHandle
);
244
return
StringHandle
.FromOffset(terminator + 1);
247
internal bool Equals(
StringHandle
handle, string value, MetadataStringDecoder utf8Decoder, bool ignoreCase)
266
internal bool StartsWith(
StringHandle
handle, string value, MetadataStringDecoder utf8Decoder, bool ignoreCase)
288
internal bool EqualsRaw(
StringHandle
rawHandle, string asciiString)
307
internal bool StartsWithRaw(
StringHandle
rawHandle, string asciiPrefix)
317
internal int BinarySearchRaw(string[] asciiKeys,
StringHandle
rawHandle)
System\Reflection\Metadata\Internal\Tables.cs (44)
48
internal
StringHandle
GetName()
51
return
StringHandle
.FromOffset(this.Block.PeekHeapReference(_NameOffset, _IsStringHeapRefSizeSmall));
108
internal
StringHandle
GetName(TypeReferenceHandle handle)
111
return
StringHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _NameOffset, _IsStringHeapRefSizeSmall));
114
internal
StringHandle
GetNamespace(TypeReferenceHandle handle)
117
return
StringHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _NamespaceOffset, _IsStringHeapRefSizeSmall));
173
internal
StringHandle
GetNamespace(TypeDefinitionHandle handle)
176
return
StringHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _NamespaceOffset, _IsStringHeapRefSizeSmall));
179
internal
StringHandle
GetName(TypeDefinitionHandle handle)
182
return
StringHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _NameOffset, _IsStringHeapRefSizeSmall));
349
internal
StringHandle
GetName(FieldDefinitionHandle handle)
352
return
StringHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _NameOffset, _IsStringHeapRefSizeSmall));
459
internal
StringHandle
GetName(MethodDefinitionHandle handle)
462
return
StringHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _NameOffset, _IsStringHeapRefSizeSmall));
545
internal
StringHandle
GetName(ParameterHandle handle)
548
return
StringHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _NameOffset, _IsStringHeapRefSizeSmall));
664
internal
StringHandle
GetName(MemberReferenceHandle handle)
667
return
StringHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _NameOffset, _IsStringHeapRefSizeSmall));
1280
internal
StringHandle
GetName(EventDefinitionHandle handle)
1283
return
StringHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _NameOffset, _IsStringHeapRefSizeSmall));
1414
internal
StringHandle
GetName(PropertyDefinitionHandle handle)
1417
return
StringHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _NameOffset, _IsStringHeapRefSizeSmall));
1631
internal
StringHandle
GetName(ModuleReferenceHandle handle)
1634
return
StringHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _NameOffset, _IsStringHeapRefSizeSmall));
1711
var
importName =
StringHandle
.FromOffset(Block.PeekHeapReference(rowOffset + _ImportNameOffset, _IsStringHeapRefSizeSmall));
1935
internal
StringHandle
GetName()
1938
return
StringHandle
.FromOffset(this.Block.PeekHeapReference(_NameOffset, _IsStringHeapRefSizeSmall));
1941
internal
StringHandle
GetCulture()
1944
return
StringHandle
.FromOffset(this.Block.PeekHeapReference(_CultureOffset, _IsStringHeapRefSizeSmall));
2063
internal
StringHandle
GetName(int rowId)
2066
return
StringHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _NameOffset, _IsStringHeapRefSizeSmall));
2069
internal
StringHandle
GetCulture(int rowId)
2072
return
StringHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _CultureOffset, _IsStringHeapRefSizeSmall));
2175
internal
StringHandle
GetName(AssemblyFileHandle handle)
2178
return
StringHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _NameOffset, _IsStringHeapRefSizeSmall));
2215
internal
StringHandle
GetTypeName(int rowId)
2218
return
StringHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _TypeNameOffset, _IsStringHeapRefSizeSmall));
2221
internal
StringHandle
GetTypeNamespaceString(int rowId)
2224
return
StringHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _TypeNamespaceOffset, _IsStringHeapRefSizeSmall));
2289
internal
StringHandle
GetName(ManifestResourceHandle handle)
2292
return
StringHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _NameOffset, _IsStringHeapRefSizeSmall));
2428
internal
StringHandle
GetName(GenericParameterHandle handle)
2431
return
StringHandle
.FromOffset(this.Block.PeekHeapReference(rowOffset + _NameOffset, _IsStringHeapRefSizeSmall));
System\Reflection\Metadata\MetadataReader.cs (2)
1061
public string GetString(
StringHandle
handle)
1093
public BlobReader GetBlobReader(
StringHandle
handle)
System\Reflection\Metadata\MetadataReader.netstandard.cs (2)
14
internal AssemblyName GetAssemblyName(
StringHandle
nameHandle, Version version,
StringHandle
cultureHandle, BlobHandle publicKeyOrTokenHandle, AssemblyHashAlgorithm assemblyHashAlgorithm, AssemblyFlags flags)
System\Reflection\Metadata\MetadataReader.WinMD.cs (117)
26
public readonly
StringHandle
.VirtualIndex ClrNamespace;
27
public readonly
StringHandle
.VirtualIndex ClrName;
35
StringHandle
.VirtualIndex clrNamespace,
36
StringHandle
.VirtualIndex clrName,
56
StringHandle
name = TypeDefTable.GetName(typeDef);
64
StringHandle
namespaceName = TypeDefTable.GetNamespace(typeDef);
100
internal static
StringHandle
GetProjectedName(int projectionIndex)
103
return
StringHandle
.FromVirtualIndex(s_projectionInfos[projectionIndex].ClrName);
106
internal static
StringHandle
GetProjectedNamespace(int projectionIndex)
109
return
StringHandle
.FromVirtualIndex(s_projectionInfos[projectionIndex].ClrNamespace);
136
keys[k++] = "AttributeTargets"; values[v++] = new ProjectionInfo("Windows.Foundation.Metadata",
StringHandle
.VirtualIndex.System,
StringHandle
.VirtualIndex.AttributeTargets, systemRuntime);
137
keys[k++] = "AttributeUsageAttribute"; values[v++] = new ProjectionInfo("Windows.Foundation.Metadata",
StringHandle
.VirtualIndex.System,
StringHandle
.VirtualIndex.AttributeUsageAttribute, systemRuntime, treatment: TypeDefTreatment.RedirectedToClrAttribute);
138
keys[k++] = "Color"; values[v++] = new ProjectionInfo("Windows.UI",
StringHandle
.VirtualIndex.Windows_UI,
StringHandle
.VirtualIndex.Color, systemRuntimeWindowsRuntime);
139
keys[k++] = "CornerRadius"; values[v++] = new ProjectionInfo("Windows.UI.Xaml",
StringHandle
.VirtualIndex.Windows_UI_Xaml,
StringHandle
.VirtualIndex.CornerRadius, systemRuntimeWindowsUiXaml);
140
keys[k++] = "DateTime"; values[v++] = new ProjectionInfo("Windows.Foundation",
StringHandle
.VirtualIndex.System,
StringHandle
.VirtualIndex.DateTimeOffset, systemRuntime);
141
keys[k++] = "Duration"; values[v++] = new ProjectionInfo("Windows.UI.Xaml",
StringHandle
.VirtualIndex.Windows_UI_Xaml,
StringHandle
.VirtualIndex.Duration, systemRuntimeWindowsUiXaml);
142
keys[k++] = "DurationType"; values[v++] = new ProjectionInfo("Windows.UI.Xaml",
StringHandle
.VirtualIndex.Windows_UI_Xaml,
StringHandle
.VirtualIndex.DurationType, systemRuntimeWindowsUiXaml);
143
keys[k++] = "EventHandler`1"; values[v++] = new ProjectionInfo("Windows.Foundation",
StringHandle
.VirtualIndex.System,
StringHandle
.VirtualIndex.EventHandler1, systemRuntime);
144
keys[k++] = "EventRegistrationToken"; values[v++] = new ProjectionInfo("Windows.Foundation",
StringHandle
.VirtualIndex.System_Runtime_InteropServices_WindowsRuntime,
StringHandle
.VirtualIndex.EventRegistrationToken, systemRuntimeInterop);
145
keys[k++] = "GeneratorPosition"; values[v++] = new ProjectionInfo("Windows.UI.Xaml.Controls.Primitives",
StringHandle
.VirtualIndex.Windows_UI_Xaml_Controls_Primitives,
StringHandle
.VirtualIndex.GeneratorPosition, systemRuntimeWindowsUiXaml);
146
keys[k++] = "GridLength"; values[v++] = new ProjectionInfo("Windows.UI.Xaml",
StringHandle
.VirtualIndex.Windows_UI_Xaml,
StringHandle
.VirtualIndex.GridLength, systemRuntimeWindowsUiXaml);
147
keys[k++] = "GridUnitType"; values[v++] = new ProjectionInfo("Windows.UI.Xaml",
StringHandle
.VirtualIndex.Windows_UI_Xaml,
StringHandle
.VirtualIndex.GridUnitType, systemRuntimeWindowsUiXaml);
148
keys[k++] = "HResult"; values[v++] = new ProjectionInfo("Windows.Foundation",
StringHandle
.VirtualIndex.System,
StringHandle
.VirtualIndex.Exception, systemRuntime, signatureTreatment: TypeRefSignatureTreatment.ProjectedToClass);
149
keys[k++] = "IBindableIterable"; values[v++] = new ProjectionInfo("Windows.UI.Xaml.Interop",
StringHandle
.VirtualIndex.System_Collections,
StringHandle
.VirtualIndex.IEnumerable, systemRuntime);
150
keys[k++] = "IBindableVector"; values[v++] = new ProjectionInfo("Windows.UI.Xaml.Interop",
StringHandle
.VirtualIndex.System_Collections,
StringHandle
.VirtualIndex.IList, systemRuntime);
151
keys[k++] = "IClosable"; values[v++] = new ProjectionInfo("Windows.Foundation",
StringHandle
.VirtualIndex.System,
StringHandle
.VirtualIndex.IDisposable, systemRuntime, isIDisposable: true);
152
keys[k++] = "ICommand"; values[v++] = new ProjectionInfo("Windows.UI.Xaml.Input",
StringHandle
.VirtualIndex.System_Windows_Input,
StringHandle
.VirtualIndex.ICommand, systemObjectModel);
153
keys[k++] = "IIterable`1"; values[v++] = new ProjectionInfo("Windows.Foundation.Collections",
StringHandle
.VirtualIndex.System_Collections_Generic,
StringHandle
.VirtualIndex.IEnumerable1, systemRuntime);
154
keys[k++] = "IKeyValuePair`2"; values[v++] = new ProjectionInfo("Windows.Foundation.Collections",
StringHandle
.VirtualIndex.System_Collections_Generic,
StringHandle
.VirtualIndex.KeyValuePair2, systemRuntime, signatureTreatment: TypeRefSignatureTreatment.ProjectedToValueType);
155
keys[k++] = "IMapView`2"; values[v++] = new ProjectionInfo("Windows.Foundation.Collections",
StringHandle
.VirtualIndex.System_Collections_Generic,
StringHandle
.VirtualIndex.IReadOnlyDictionary2, systemRuntime);
156
keys[k++] = "IMap`2"; values[v++] = new ProjectionInfo("Windows.Foundation.Collections",
StringHandle
.VirtualIndex.System_Collections_Generic,
StringHandle
.VirtualIndex.IDictionary2, systemRuntime);
157
keys[k++] = "INotifyCollectionChanged"; values[v++] = new ProjectionInfo("Windows.UI.Xaml.Interop",
StringHandle
.VirtualIndex.System_Collections_Specialized,
StringHandle
.VirtualIndex.INotifyCollectionChanged, systemObjectModel);
158
keys[k++] = "INotifyPropertyChanged"; values[v++] = new ProjectionInfo("Windows.UI.Xaml.Data",
StringHandle
.VirtualIndex.System_ComponentModel,
StringHandle
.VirtualIndex.INotifyPropertyChanged, systemObjectModel);
159
keys[k++] = "IReference`1"; values[v++] = new ProjectionInfo("Windows.Foundation",
StringHandle
.VirtualIndex.System,
StringHandle
.VirtualIndex.Nullable1, systemRuntime, signatureTreatment: TypeRefSignatureTreatment.ProjectedToValueType);
160
keys[k++] = "IVectorView`1"; values[v++] = new ProjectionInfo("Windows.Foundation.Collections",
StringHandle
.VirtualIndex.System_Collections_Generic,
StringHandle
.VirtualIndex.IReadOnlyList1, systemRuntime);
161
keys[k++] = "IVector`1"; values[v++] = new ProjectionInfo("Windows.Foundation.Collections",
StringHandle
.VirtualIndex.System_Collections_Generic,
StringHandle
.VirtualIndex.IList1, systemRuntime);
162
keys[k++] = "KeyTime"; values[v++] = new ProjectionInfo("Windows.UI.Xaml.Media.Animation",
StringHandle
.VirtualIndex.Windows_UI_Xaml_Media_Animation,
StringHandle
.VirtualIndex.KeyTime, systemRuntimeWindowsUiXaml);
163
keys[k++] = "Matrix"; values[v++] = new ProjectionInfo("Windows.UI.Xaml.Media",
StringHandle
.VirtualIndex.Windows_UI_Xaml_Media,
StringHandle
.VirtualIndex.Matrix, systemRuntimeWindowsUiXaml);
164
keys[k++] = "Matrix3D"; values[v++] = new ProjectionInfo("Windows.UI.Xaml.Media.Media3D",
StringHandle
.VirtualIndex.Windows_UI_Xaml_Media_Media3D,
StringHandle
.VirtualIndex.Matrix3D, systemRuntimeWindowsUiXaml);
165
keys[k++] = "Matrix3x2"; values[v++] = new ProjectionInfo("Windows.Foundation.Numerics",
StringHandle
.VirtualIndex.System_Numerics,
StringHandle
.VirtualIndex.Matrix3x2, systemNumericsVectors);
166
keys[k++] = "Matrix4x4"; values[v++] = new ProjectionInfo("Windows.Foundation.Numerics",
StringHandle
.VirtualIndex.System_Numerics,
StringHandle
.VirtualIndex.Matrix4x4, systemNumericsVectors);
167
keys[k++] = "NotifyCollectionChangedAction"; values[v++] = new ProjectionInfo("Windows.UI.Xaml.Interop",
StringHandle
.VirtualIndex.System_Collections_Specialized,
StringHandle
.VirtualIndex.NotifyCollectionChangedAction, systemObjectModel);
168
keys[k++] = "NotifyCollectionChangedEventArgs"; values[v++] = new ProjectionInfo("Windows.UI.Xaml.Interop",
StringHandle
.VirtualIndex.System_Collections_Specialized,
StringHandle
.VirtualIndex.NotifyCollectionChangedEventArgs, systemObjectModel);
169
keys[k++] = "NotifyCollectionChangedEventHandler"; values[v++] = new ProjectionInfo("Windows.UI.Xaml.Interop",
StringHandle
.VirtualIndex.System_Collections_Specialized,
StringHandle
.VirtualIndex.NotifyCollectionChangedEventHandler, systemObjectModel);
170
keys[k++] = "Plane"; values[v++] = new ProjectionInfo("Windows.Foundation.Numerics",
StringHandle
.VirtualIndex.System_Numerics,
StringHandle
.VirtualIndex.Plane, systemNumericsVectors);
171
keys[k++] = "Point"; values[v++] = new ProjectionInfo("Windows.Foundation",
StringHandle
.VirtualIndex.Windows_Foundation,
StringHandle
.VirtualIndex.Point, systemRuntimeWindowsRuntime);
172
keys[k++] = "PropertyChangedEventArgs"; values[v++] = new ProjectionInfo("Windows.UI.Xaml.Data",
StringHandle
.VirtualIndex.System_ComponentModel,
StringHandle
.VirtualIndex.PropertyChangedEventArgs, systemObjectModel);
173
keys[k++] = "PropertyChangedEventHandler"; values[v++] = new ProjectionInfo("Windows.UI.Xaml.Data",
StringHandle
.VirtualIndex.System_ComponentModel,
StringHandle
.VirtualIndex.PropertyChangedEventHandler, systemObjectModel);
174
keys[k++] = "Quaternion"; values[v++] = new ProjectionInfo("Windows.Foundation.Numerics",
StringHandle
.VirtualIndex.System_Numerics,
StringHandle
.VirtualIndex.Quaternion, systemNumericsVectors);
175
keys[k++] = "Rect"; values[v++] = new ProjectionInfo("Windows.Foundation",
StringHandle
.VirtualIndex.Windows_Foundation,
StringHandle
.VirtualIndex.Rect, systemRuntimeWindowsRuntime);
176
keys[k++] = "RepeatBehavior"; values[v++] = new ProjectionInfo("Windows.UI.Xaml.Media.Animation",
StringHandle
.VirtualIndex.Windows_UI_Xaml_Media_Animation,
StringHandle
.VirtualIndex.RepeatBehavior, systemRuntimeWindowsUiXaml);
177
keys[k++] = "RepeatBehaviorType"; values[v++] = new ProjectionInfo("Windows.UI.Xaml.Media.Animation",
StringHandle
.VirtualIndex.Windows_UI_Xaml_Media_Animation,
StringHandle
.VirtualIndex.RepeatBehaviorType, systemRuntimeWindowsUiXaml);
178
keys[k++] = "Size"; values[v++] = new ProjectionInfo("Windows.Foundation",
StringHandle
.VirtualIndex.Windows_Foundation,
StringHandle
.VirtualIndex.Size, systemRuntimeWindowsRuntime);
179
keys[k++] = "Thickness"; values[v++] = new ProjectionInfo("Windows.UI.Xaml",
StringHandle
.VirtualIndex.Windows_UI_Xaml,
StringHandle
.VirtualIndex.Thickness, systemRuntimeWindowsUiXaml);
180
keys[k++] = "TimeSpan"; values[v++] = new ProjectionInfo("Windows.Foundation",
StringHandle
.VirtualIndex.System,
StringHandle
.VirtualIndex.TimeSpan, systemRuntime);
181
keys[k++] = "TypeName"; values[v++] = new ProjectionInfo("Windows.UI.Xaml.Interop",
StringHandle
.VirtualIndex.System,
StringHandle
.VirtualIndex.Type, systemRuntime, signatureTreatment: TypeRefSignatureTreatment.ProjectedToClass);
182
keys[k++] = "Uri"; values[v++] = new ProjectionInfo("Windows.Foundation",
StringHandle
.VirtualIndex.System,
StringHandle
.VirtualIndex.Uri, systemRuntime);
183
keys[k++] = "Vector2"; values[v++] = new ProjectionInfo("Windows.Foundation.Numerics",
StringHandle
.VirtualIndex.System_Numerics,
StringHandle
.VirtualIndex.Vector2, systemNumericsVectors);
184
keys[k++] = "Vector3"; values[v++] = new ProjectionInfo("Windows.Foundation.Numerics",
StringHandle
.VirtualIndex.System_Numerics,
StringHandle
.VirtualIndex.Vector3, systemNumericsVectors);
185
keys[k++] = "Vector4"; values[v++] = new ProjectionInfo("Windows.Foundation.Numerics",
StringHandle
.VirtualIndex.System_Numerics,
StringHandle
.VirtualIndex.Vector4, systemNumericsVectors);
337
StringHandle
name = TypeRefTable.GetName(handle);
375
StringHandle
nameHandle = TypeRefTable.GetName(extendsRefHandle);
507
StringHandle
namespaceHandle, nameHandle;
731
StringHandle
namespaceName, typeName;
743
private bool GetAttributeTypeNameRaw(CustomAttributeHandle caHandle, out
StringHandle
namespaceName, out
StringHandle
typeName)
745
namespaceName = typeName = default(
StringHandle
);
System\Reflection\Metadata\MetadataStringComparer.cs (4)
58
public bool Equals(
StringHandle
handle, string value)
63
public bool Equals(
StringHandle
handle, string value, bool ignoreCase)
108
public bool StartsWith(
StringHandle
handle, string value)
113
public bool StartsWith(
StringHandle
handle, string value, bool ignoreCase)
System\Reflection\Metadata\PortablePdb\LocalConstant.cs (1)
32
public
StringHandle
Name => _reader.LocalConstantTable.GetName(Handle);
System\Reflection\Metadata\PortablePdb\LocalVariable.cs (1)
34
public
StringHandle
Name => _reader.LocalVariableTable.GetName(Handle);
System\Reflection\Metadata\PortablePdb\Tables.Debug.cs (4)
278
internal
StringHandle
GetName(LocalVariableHandle handle)
281
return
StringHandle
.FromOffset(Block.PeekHeapReference(rowOffset + _nameOffset, _isStringHeapRefSizeSmall));
314
internal
StringHandle
GetName(LocalConstantHandle handle)
317
return
StringHandle
.FromOffset(Block.PeekHeapReference(rowOffset + NameOffset, _isStringHeapRefSizeSmall));
System\Reflection\Metadata\TypeSystem\AssemblyDefinition.cs (2)
42
public
StringHandle
Name
50
public
StringHandle
Culture
System\Reflection\Metadata\TypeSystem\AssemblyFile.cs (1)
46
public
StringHandle
Name
System\Reflection\Metadata\TypeSystem\AssemblyReference.cs (13)
72
public
StringHandle
Name
85
public
StringHandle
Culture
147
private
StringHandle
GetVirtualName()
149
return
StringHandle
.FromVirtualIndex(GetVirtualNameIndex((AssemblyReferenceHandle.VirtualIndex)RowId));
152
private static
StringHandle
.VirtualIndex GetVirtualNameIndex(AssemblyReferenceHandle.VirtualIndex index)
157
return
StringHandle
.VirtualIndex.System_ObjectModel;
160
return
StringHandle
.VirtualIndex.System_Runtime;
163
return
StringHandle
.VirtualIndex.System_Runtime_InteropServices_WindowsRuntime;
166
return
StringHandle
.VirtualIndex.System_Runtime_WindowsRuntime;
169
return
StringHandle
.VirtualIndex.System_Runtime_WindowsRuntime_UI_Xaml;
172
return
StringHandle
.VirtualIndex.System_Numerics_Vectors;
179
private static
StringHandle
GetVirtualCulture()
181
return default(
StringHandle
);
System\Reflection\Metadata\TypeSystem\EventDefinition.cs (1)
31
public
StringHandle
Name
System\Reflection\Metadata\TypeSystem\ExportedType.cs (2)
42
public
StringHandle
Name
50
public
StringHandle
Namespace
System\Reflection\Metadata\TypeSystem\FieldDefinition.cs (2)
40
public
StringHandle
Name
150
private
StringHandle
GetProjectedName()
System\Reflection\Metadata\TypeSystem\GenericParameter.cs (1)
77
public
StringHandle
Name
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (18)
2210
public readonly struct StringHandle : IEquatable<
StringHandle
>
2307
internal static
StringHandle
FromOffset(int heapOffset)
2312
internal static
StringHandle
FromVirtualIndex(VirtualIndex virtualIndex)
2318
internal static
StringHandle
FromWriterVirtualIndex(int virtualIndex)
2323
internal
StringHandle
WithWinRTPrefix()
2329
internal
StringHandle
WithDotTermination()
2335
internal
StringHandle
SuffixRaw(int prefixByteLength)
2342
public static implicit operator Handle(
StringHandle
handle)
2350
public static explicit operator
StringHandle
(Handle handle)
2406
return obj is
StringHandle
&& Equals((
StringHandle
)obj);
2409
public bool Equals(
StringHandle
other)
2419
public static bool operator ==(
StringHandle
left,
StringHandle
right)
2424
public static bool operator !=(
StringHandle
left,
StringHandle
right)
2516
internal
StringHandle
GetFullName()
2519
return
StringHandle
.FromOffset(GetHeapOffset());
System\Reflection\Metadata\TypeSystem\ManifestResource.cs (1)
57
public
StringHandle
Name
System\Reflection\Metadata\TypeSystem\MemberReference.cs (4)
56
public
StringHandle
Name
129
private
StringHandle
GetProjectedName()
133
return
StringHandle
.FromVirtualIndex(
StringHandle
.VirtualIndex.Dispose);
System\Reflection\Metadata\TypeSystem\MethodDefinition.cs (4)
40
public
StringHandle
Name
150
private
StringHandle
GetProjectedName()
154
return
StringHandle
.FromVirtualIndex(
StringHandle
.VirtualIndex.Dispose);
System\Reflection\Metadata\TypeSystem\MethodImport.cs (3)
9
private readonly
StringHandle
_name;
12
internal MethodImport(MethodImportAttributes attributes,
StringHandle
name, ModuleReferenceHandle module)
20
public
StringHandle
Name { get { return _name; } }
System\Reflection\Metadata\TypeSystem\ModuleDefinition.cs (1)
26
public
StringHandle
Name
System\Reflection\Metadata\TypeSystem\ModuleReference.cs (1)
29
public
StringHandle
Name
System\Reflection\Metadata\TypeSystem\NamespaceDefinition.cs (1)
23
public
StringHandle
Name
System\Reflection\Metadata\TypeSystem\Parameter.cs (1)
45
public
StringHandle
Name
System\Reflection\Metadata\TypeSystem\PropertyDefinition.cs (1)
31
public
StringHandle
Name
System\Reflection\Metadata\TypeSystem\TypeDefinition.cs (5)
62
public
StringHandle
Name
78
public
StringHandle
Namespace
265
private
StringHandle
GetProjectedName()
267
var
name = _reader.TypeDefTable.GetName(Handle);
286
private
StringHandle
GetProjectedNamespaceString()
System\Reflection\Metadata\TypeSystem\TypeReference.cs (7)
69
public
StringHandle
Name
85
public
StringHandle
Namespace
116
private
StringHandle
GetProjectedName()
128
private
StringHandle
GetProjectedNamespace()
134
return
StringHandle
.FromVirtualIndex(
StringHandle
.VirtualIndex.System);
141
return default(
StringHandle
);
System.Reflection.MetadataLoadContext (10)
System\Reflection\Runtime\BindingFlagSupport\NameFilter.Ecma.cs (3)
11
public abstract bool Matches(
StringHandle
stringHandle, MetadataReader reader);
16
public sealed override bool Matches(
StringHandle
stringHandle, MetadataReader reader) => stringHandle.Equals(_expectedNameUtf8, reader);
21
public sealed override bool Matches(
StringHandle
stringHandle, MetadataReader reader) => reader.StringComparer.Equals(stringHandle, ExpectedName, true);
System\Reflection\TypeLoading\General\Ecma\EcmaHelpers.cs (2)
108
StringHandle
nameHandle = method.Name;
112
public static unsafe ReadOnlySpan<byte> AsReadOnlySpan(this
StringHandle
handle, MetadataReader reader)
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (5)
18
public static BlobReader GetBlobReader(this
StringHandle
handle, MetadataReader reader) => reader.GetBlobReader(handle);
51
public static string GetString(this
StringHandle
handle, MetadataReader reader) => reader.GetString(handle);
74
public static string? GetStringOrNull(this
StringHandle
handle, MetadataReader reader) => handle.IsNil ? null : reader.GetString(handle);
76
public static bool Equals(this
StringHandle
handle, string value, MetadataReader reader) => reader.StringComparer.Equals(handle, value, ignoreCase: false);
81
public static unsafe bool Equals(this
StringHandle
handle, ReadOnlySpan<byte> utf8, MetadataReader reader)