Exemplo n.º 1
0
        static public string GetCustomLabeledAttributeOfTypeLabel(this IDynamicCustomAttributeProvider item, Type attribute_type, bool inherit, string default_value = "")
        {
            string label;

            if (item.TryGetCustomLabeledAttributeOfTypeLabel(attribute_type, out label, inherit))
            {
                return(label);
            }

            return(default_value);
        }
Exemplo n.º 2
0
 static public bool TryGetCustomLabeledAttributeOfTypeLabel <T>(this IDynamicCustomAttributeProvider item, out string label, bool inherit) where T : LabeledAttribute
 {
     return(item.TryGetCustomLabeledAttributeOfTypeLabel(typeof(T), out label, inherit));
 }