/// <summary> /// Visitor implementation. Adds a property to the class declaration. /// </summary> /// <param name="element"></param> public void Visit(VisitableAttributeSimpleType element) { base.Visit(element); if (CurrentType == null) { return; } CodeDomHelper.AddProperty(CurrentType, element, ((XmlSchemaSimpleType)element.SchemaObject.AttributeType).Datatype.ValueType, CurrentNamespace, RetrieveMethod(CurrentType, "InitClass"), RetrieveMethod(CurrentType, "InitVars")); }
public void Visit(VisitableAttributeSimpleType element) { DebugProperty(element); }
/// <summary> /// Visitor implementation. Builds a property for the element. /// </summary> /// <param name="element">The element from which to build the property.</param> public void Visit(VisitableAttributeSimpleType element) { AddPropertyCode(element, ((XmlSchemaSimpleType)element.SchemaObject.AttributeType).Datatype.ValueType); }