Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ TryGetHeapIndex()

static bool System.Reflection.Metadata.Ecma335.MetadataTokens.TryGetHeapIndex ( HandleKind type,
out HeapIndex index )
inlinestatic

Definition at line 151 of file MetadataTokens.cs.

152 {
153 switch (type)
154 {
155 case HandleKind.UserString:
156 index = HeapIndex.UserString;
157 return true;
158 case HandleKind.String:
159 case HandleKind.NamespaceDefinition:
160 index = HeapIndex.String;
161 return true;
162 case HandleKind.Blob:
163 index = HeapIndex.Blob;
164 return true;
165 case HandleKind.Guid:
166 index = HeapIndex.Guid;
167 return true;
168 default:
169 index = HeapIndex.UserString;
170 return false;
171 }
172 }

References System.index, and System.type.

Referenced by System.Reflection.Metadata.Ecma335.MetadataAggregator.GetGenerationHandle().