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

◆ GetTypeFromHandle()

TType System.Reflection.Metadata.Ecma335.CustomAttributeDecoder< TType >.GetTypeFromHandle ( EntityHandle handle)
inlineprivate

Definition at line 292 of file CustomAttributeDecoder.cs.

293 {
294 return handle.Kind switch
295 {
296 HandleKind.TypeDefinition => _provider.GetTypeFromDefinition(_reader, (TypeDefinitionHandle)handle, 0),
297 HandleKind.TypeReference => _provider.GetTypeFromReference(_reader, (TypeReferenceHandle)handle, 0),
298 _ => throw new BadImageFormatException(System.SR.NotTypeDefOrRefHandle),
299 };
300 }
static string NotTypeDefOrRefHandle
Definition SR.cs:168
Definition SR.cs:7
readonly ICustomAttributeTypeProvider< TType > _provider

References System.Reflection.Metadata.Ecma335.CustomAttributeDecoder< TType >._provider, System.Reflection.Metadata.Ecma335.CustomAttributeDecoder< TType >._reader, System.handle, and System.SR.NotTypeDefOrRefHandle.

Referenced by System.Reflection.Metadata.Ecma335.CustomAttributeDecoder< TType >.DecodeFixedArgumentType().