Esempio n. 1
0
 /// <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"));
 }
Esempio n. 2
0
 public void Visit(VisitableAttributeSimpleType element)
 {
     DebugProperty(element);
 }
Esempio n. 3
0
 /// <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);
 }