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

◆ ToHasDeclSecurityTag()

static HasDeclSecurityTag System.Reflection.Metadata.Ecma335.CodedIndex.ToHasDeclSecurityTag ( HandleKind kind)
inlinestaticprivate

Definition at line 323 of file CodedIndex.cs.

324 {
325 switch (kind)
326 {
327 case HandleKind.TypeDefinition:
328 return HasDeclSecurityTag.TypeDef;
329 case HandleKind.MethodDefinition:
330 return HasDeclSecurityTag.MethodDef;
331 case HandleKind.AssemblyDefinition:
332 return HasDeclSecurityTag.Assembly;
333 default:
334 Throw.InvalidArgument_UnexpectedHandleKind(kind);
335 return HasDeclSecurityTag.TypeDef;
336 }
337 }

References System.Reflection.Throw.InvalidArgument_UnexpectedHandleKind().

Referenced by System.Reflection.Metadata.Ecma335.CodedIndex.HasDeclSecurity().