/// <summary> /// /// </summary> /// <param name="thisClass"></param> /// <returns></returns> public static String[] OtherTags(Type thisClass) { IEnumerable <Attribute> attributes = thisClass.GetTypeInfo().GetCustomAttributes(false); SimplOtherTags otherTagsAnnotation = attributes.OfType <SimplOtherTags>().FirstOrDefault(); return(otherTagsAnnotation == null ? null : OtherTags(otherTagsAnnotation)); }
/// <summary> /// /// </summary> /// <param name="otherTagsAttributes"></param> /// <returns></returns> public static String[] OtherTags(SimplOtherTags otherTagsAttributes) { String[] result = otherTagsAttributes == null ? null : otherTagsAttributes.OtherTags; if ((result != null) && (result.Length == 0)) { result = null; } return(result); }