Example #1
0
 /// <summary>
 /// Visitor implementation. Adds a property to the class declaration.
 /// </summary>
 /// <param name="element"></param>
 public void Visit(VisitableElementSimpleType element)
 {
     base.Visit(element);
     if (CurrentType == null)
     {
         return;
     }
     CodeDomHelper.AddProperty(CurrentType, element,
                               ((XmlSchemaSimpleType)element.SchemaObject.ElementType).Datatype.ValueType,
                               CurrentNamespace, RetrieveMethod(CurrentType, "InitClass"),
                               RetrieveMethod(CurrentType, "InitVars"));
 }
Example #2
0
 public void Visit(VisitableElementSimpleType element)
 {
     DebugProperty(element);
 }
Example #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(VisitableElementSimpleType element)
 {
     AddPropertyCode(element, ((XmlSchemaSimpleType)element.SchemaObject.ElementType).Datatype.ValueType);
 }