public Elements TypeSender() { foreach (var type in types) { if (type.IsClass) { ClassWriter classwriter = new ClassWriter(type, elements); classwriter.Write(); elements = classwriter.elements; } else if (type.IsEnum) { EnumWriter enumwriter = new EnumWriter(type, elements); enumwriter.Write(); elements = enumwriter.elements; } else { StructWriter structwriter = new StructWriter(type, elements); structwriter.Write(); elements = structwriter.element; } } return(elements); }
public void TypeSender() { foreach (var type in types) { if (type.IsClass) { ClassWriter classwriter = new ClassWriter(type, elements); classwriter.Write(); } else if (type.IsEnum) { EnumWriter enumwriter = new EnumWriter(type, elements); enumwriter.Write(); } else { StructWriter structwriter = new StructWriter(type, elements); structwriter.Write(); } } }