/// <summary> /// /// </summary> /// <param name="thatClass"></param> /// <param name="suffix"></param> /// <returns></returns> public static string GetXmlTagName(Type thatClass, String suffix) { SimplTag tagAnnotation = GetAnnotation <SimplTag>(thatClass); String result = null; if (tagAnnotation != null) { result = tagAnnotation.TagName; } if (result == null) { result = GetXmlTagName(GetClassName(thatClass), suffix); } return(result); }
/// <summary> /// /// </summary> /// <param name="field"></param> /// <returns></returns> public static string GetXmlTagName(FieldInfo field) { SimplTag tagAnnotation = GetAnnotation <SimplTag>(field); String result = null; if (tagAnnotation != null) { result = tagAnnotation.TagName; } if (result == null) { result = GetXmlTagName(field.Name, null); } return(result); }