public void Write() { StructElements structelement = new StructElements(); structelement.structName = type.Name; structelement.structNamespace = type.Namespace; FieldWriter structfields = new FieldWriter(type.GetFields()); structelement.structFields = structfields.Writer(); element.structList.Add(structelement); }
public void Write() { ClassElements classelement = new ClassElements(); classelement.className = type.Name; classelement.classNamespace = type.Namespace; FieldWriter fieldwriter = new FieldWriter(type.GetFields()); classelement.classFields = fieldwriter.Writer(); PropertyWriter propertywriter = new PropertyWriter(type.GetProperties()); classelement.classPropertys = propertywriter.Writer(); elements.classList.Add(classelement); }