コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }