Ejemplo n.º 1
0
 static public bool HasCustomLabeledAttributeOfType(this IDynamicCustomAttributeProvider item, Type attribute_type, string label, bool inherit)
 {
     return(item.HasCustomAttributeOfSubType <LabeledAttribute>(attribute_type, inherit, it => it.IsLabeled(label)));
 }
Ejemplo n.º 2
0
 static public bool HasCustomForTypeAttributeOfType(this IDynamicCustomAttributeProvider item, Type attribute_type, Type type)
 {
     return(item.HasCustomAttributeOfSubType <ForTypeAttribute>(attribute_type, false, it => it.IsFor(type)));
 }