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

◆ GetMethodTreatmentFromCustomAttributes()

MethodDefTreatment System.Reflection.Metadata.MetadataReader.GetMethodTreatmentFromCustomAttributes ( MethodDefinitionHandle methodDef)
inlineprivate

Definition at line 1641 of file MetadataReader.cs.

1642 {
1644 foreach (CustomAttributeHandle customAttribute in GetCustomAttributes(methodDef))
1645 {
1647 {
1648 if (StringHeap.EqualsRaw(typeName, "TreatAsPublicMethodAttribute"))
1649 {
1650 methodDefTreatment |= MethodDefTreatment.MarkPublicFlag;
1651 }
1652 if (StringHeap.EqualsRaw(typeName, "TreatAsAbstractMethodAttribute"))
1653 {
1654 methodDefTreatment |= MethodDefTreatment.MarkAbstractFlag;
1655 }
1656 }
1657 }
1658 return methodDefTreatment;
1659 }
bool GetAttributeTypeNameRaw(CustomAttributeHandle caHandle, out StringHandle namespaceName, out StringHandle typeName)
CustomAttributeHandleCollection GetCustomAttributes(EntityHandle handle)
bool EqualsRaw(StringHandle rawHandle, string asciiString)

References System.Reflection.Metadata.Ecma335.StringHeap.EqualsRaw(), System.Reflection.Metadata.MetadataReader.GetAttributeTypeNameRaw(), and System.Reflection.Metadata.MetadataReader.GetCustomAttributes().

Referenced by System.Reflection.Metadata.MetadataReader.CalculateMethodDefTreatmentAndRowId().