public static string Dump(Class3 value) { var assistant = new AssistantDumper(); Dump(assistant, value); return(assistant.ToString()); }
static internal void Dump(AssistantDumper assistant, Class3 value, bool withSeparator = false) { assistant.IncrementDepth(); if (assistant.MaximumDepthExceeded()) { return; } assistant.AddStartObject(); assistant.AddType("Dogen.TestModels.CSharpModel.Package1.Class3", true /*withSeparator*/); if (value == null) { assistant.Add("data", "<null>"); assistant.AddEndObject(); return; } assistant.AddKey("data"); assistant.AddPairSeparator(); assistant.AddStartObject(); assistant.Add("Prop0", value.Prop0); assistant.AddEndObject(); // data assistant.AddEndObject(); // main object assistant.HandleMemberSeparator(withSeparator); assistant.DecrementDepth(); }
static internal Class3 Create(uint position) { var result = new Class3(); Populate(result, position); return(result); }
internal static void Dump(AssistantDumper assistant, Class3 value, bool withSeparator = false) { assistant.IncrementDepth(); if (assistant.MaximumDepthExceeded()) return; assistant.AddStartObject(); assistant.AddType("Dogen.TestModels.CSharpModel.Package1.Class3", true/*withSeparator*/); if (value == null) { assistant.Add("data", "<null>"); assistant.AddEndObject(); return; } assistant.AddKey("data"); assistant.AddPairSeparator(); assistant.AddStartObject(); assistant.Add("Prop0", value.Prop0); assistant.AddEndObject(); // data assistant.AddEndObject(); // main object assistant.HandleMemberSeparator(withSeparator); assistant.DecrementDepth(); }
static internal void Populate(Class3 value, uint position) { value.Prop0 = AssistantSequenceGenerator.CreateInt(position + 0); }
public static string Dump(Class3 value) { var assistant = new AssistantDumper(); Dump(assistant, value); return assistant.ToString(); }