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