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

◆ ToHasConstantTag()

static HasConstantTag System.Reflection.Metadata.Ecma335.CodedIndex.ToHasConstantTag ( HandleKind kind)
inlinestaticprivate

Definition at line 293 of file CodedIndex.cs.

294 {
295 switch (kind)
296 {
297 case HandleKind.FieldDefinition:
298 return HasConstantTag.Field;
299 case HandleKind.Parameter:
300 return HasConstantTag.Param;
301 case HandleKind.PropertyDefinition:
302 return HasConstantTag.Property;
303 default:
304 Throw.InvalidArgument_UnexpectedHandleKind(kind);
305 return HasConstantTag.Field;
306 }
307 }

References System.Reflection.Throw.InvalidArgument_UnexpectedHandleKind().

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