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); }
static public bool TryGetCustomLabeledAttributeOfTypeLabel <T>(this IDynamicCustomAttributeProvider item, out string label, bool inherit) where T : LabeledAttribute { return(item.TryGetCustomLabeledAttributeOfTypeLabel(typeof(T), out label, inherit)); }