static MethodDefinitionTreatment GetMethodDefinitionTreatmentFromCustomAttributes(MethodDefinition method)
{
var treatment = MethodDefinitionTreatment.None;
foreach (var attribute in method.CustomAttributes)
{
var type = attribute.AttributeType;
if (type.Namespace != "Windows.UI.Xaml")
continue;
if (type.Name == "TreatAsPublicMethodAttribute")
treatment |= MethodDefinitionTreatment.Public;
else if (type.Name == "TreatAsAbstractMethodAttribute")
treatment |= MethodDefinitionTreatment.Abstract;
}
return treatment;
}