/// <summary> Write a MetaValue XML Element from attributes in a member. </summary> public virtual void WriteMetaValue(System.Xml.XmlWriter writer, System.Reflection.MemberInfo member, MetaValueAttribute attribute, BaseAttribute parentAttribute, System.Type mappedClass) { writer.WriteStartElement( "meta-value" ); // Attribute: <value> writer.WriteAttributeString("value", attribute.Value==null ? DefaultHelper.Get_MetaValue_Value_DefaultValue(member) : GetAttributeValue(attribute.Value, mappedClass)); // Attribute: <class> writer.WriteAttributeString("class", attribute.Class==null ? DefaultHelper.Get_MetaValue_Class_DefaultValue(member) : GetAttributeValue(attribute.Class, mappedClass)); WriteUserDefinedContent(writer, member, null, attribute); writer.WriteEndElement(); }
/// <summary> /// This is here so the XmlGenerationVisitor will always /// output the meta-values in consistent order, to aid the tests. /// </summary> int IComparable.CompareTo(object obj) { MetaValueAttribute other = (MetaValueAttribute)obj; return(Class.FullName.CompareTo(other.Class.FullName)); }