public static void AddAnnotation(this XmlSchemaAnnotated annotatedType, Type type, ConfigurationPropertyAttribute configProperty) { annotatedType.Annotation = new XmlSchemaAnnotation(); // human documentation var descriptionAtts = TypeParser.GetAttributes <DescriptionAttribute>(type); var xmlDocumentation = type.GetXmlDocumentation(); var typeName = type.FullName; ApplyAnnotation(annotatedType, descriptionAtts, configProperty, xmlDocumentation, typeName, typeName); }
/// <summary> /// Provides standard documentation for a type in the form of XmlSchemaDocumentation objects /// </summary> public static void AddAnnotation(this XmlSchemaAnnotated annotatedType, PropertyInfo property, ConfigurationPropertyAttribute configProperty) { annotatedType.Annotation = new XmlSchemaAnnotation(); // human documentation var descriptionAtts = TypeParser.GetAttributes <DescriptionAttribute>(property); var xmlDocumentation = property.GetXmlDocumentation(); var fullName = property.PropertyType.FullName; var typeName = String.Format("{0}{1}", property.DeclaringType.FullName, property.Name); ApplyAnnotation(annotatedType, descriptionAtts, configProperty, xmlDocumentation, typeName, fullName); }