public void Generate() { MethodTemplates.Clear(); Methods.Clear(); Constructors.Clear(); Methods.AddRange(new[] { MethodInfoFactory.GenerateReadFieldsMethod(this), MethodInfoFactory.GenerateReadPointersMethod(this) }); GenerateWriteMethod(); }