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