public AddType ( string typeName, bool withSeparator = false ) : void | ||
typeName | string | |
withSeparator | bool | |
리턴 | void |
internal static void Dump(AssistantDumper assistant, ParentOutside value, bool withSeparator = false) { assistant.IncrementDepth(); if (assistant.MaximumDepthExceeded()) return; assistant.AddStartObject(); assistant.AddType("Dogen.TestModels.CSharpModel.ParentOutside", 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(); }
internal static void Dump(AssistantDumper assistant, ImmutableFour value, bool withSeparator = false) { assistant.IncrementDepth(); if (assistant.MaximumDepthExceeded()) return; assistant.AddStartObject(); assistant.AddType("Dogen.TestModels.CSharpModel.ImmutableFour", true/*withSeparator*/); if (value == null) { assistant.Add("data", "<null>"); assistant.AddEndObject(); return; } assistant.AddKey("data"); assistant.AddPairSeparator(); assistant.AddStartObject(); assistant.Add("Prop0", value.Prop0, true/*withSeparator*/); assistant.Add("Prop1", value.Prop1, true/*withSeparator*/); assistant.AddKey("Prop2"); assistant.AddPairSeparator(); Dogen.TestModels.CSharpModel.ComplexBuiltinsDumper.Dump(assistant, value.Prop2, true/*withSeparator*/); assistant.AddKey("Prop3"); assistant.AddPairSeparator(); Dogen.TestModels.CSharpModel.ImmutableOnePrimitiveDumper.Dump(assistant, value.Prop3); assistant.AddEndObject(); // data assistant.AddEndObject(); // main object assistant.HandleMemberSeparator(withSeparator); assistant.DecrementDepth(); }
internal static void Dump(AssistantDumper assistant, Descendant1 value, bool withSeparator = false) { assistant.IncrementDepth(); if (assistant.MaximumDepthExceeded()) return; assistant.AddStartObject(); assistant.AddType("Dogen.TestModels.CSharpModel.Descendant1", true/*withSeparator*/); if (value == null) { assistant.Add("data", "<null>"); assistant.AddEndObject(); return; } assistant.AddKey("data"); assistant.AddPairSeparator(); assistant.AddStartObject(); assistant.AddKey("__parent_0__"); assistant.AddPairSeparator(); Dogen.TestModels.CSharpModel.BaseDumper.Dump(assistant, value); assistant.AddEndObject(); // data assistant.AddEndObject(); // main object assistant.HandleMemberSeparator(withSeparator); assistant.DecrementDepth(); }
internal static void Dump(AssistantDumper assistant, Association value, bool withSeparator = false) { assistant.IncrementDepth(); if (assistant.MaximumDepthExceeded()) return; assistant.AddStartObject(); assistant.AddType("Dogen.TestModels.CSharpModel.Association", true/*withSeparator*/); if (value == null) { assistant.Add("data", "<null>"); assistant.AddEndObject(); return; } assistant.AddKey("data"); assistant.AddPairSeparator(); assistant.AddStartObject(); assistant.Add("Prop0", value.Prop0, true/*withSeparator*/); assistant.AddKey("Prop1"); assistant.AddPairSeparator(); Dogen.TestModels.CSharpModel.NoPropertiesDumper.Dump(assistant, value.Prop1, true/*withSeparator*/); assistant.AddKey("Prop2"); assistant.AddPairSeparator(); Dogen.TestModels.CSharpModel.ColourTypesDumper.Dump(assistant, value.Prop2); 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 void Dump(AssistantDumper assistant, ParentOutside value, bool withSeparator = false) { assistant.IncrementDepth(); if (assistant.MaximumDepthExceeded()) { return; } assistant.AddStartObject(); assistant.AddType("Dogen.TestModels.CSharpModel.ParentOutside", 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 Dump(AssistantDumper assistant, SecondChildWithoutMembers value, bool withSeparator = false) { assistant.IncrementDepth(); if (assistant.MaximumDepthExceeded()) { return; } assistant.AddStartObject(); assistant.AddType("Dogen.TestModels.CSharpModel.SecondChildWithoutMembers", true /*withSeparator*/); if (value == null) { assistant.Add("data", "<null>"); assistant.AddEndObject(); return; } assistant.AddKey("data"); assistant.AddPairSeparator(); assistant.AddStartObject(); assistant.AddKey("__parent_0__"); assistant.AddPairSeparator(); Dogen.TestModels.CSharpModel.ParentWithMembersDumper.Dump(assistant, value); assistant.AddEndObject(); // data assistant.AddEndObject(); // main object assistant.HandleMemberSeparator(withSeparator); assistant.DecrementDepth(); }
static internal void Dump(AssistantDumper assistant, PrimitiveBuiltins value, bool withSeparator = false) { assistant.IncrementDepth(); if (assistant.MaximumDepthExceeded()) { return; } assistant.AddStartObject(); assistant.AddType("Dogen.TestModels.CSharpModel.PrimitiveBuiltins", true /*withSeparator*/); if (value == null) { assistant.Add("data", "<null>"); assistant.AddEndObject(); return; } assistant.AddKey("data"); assistant.AddPairSeparator(); assistant.AddStartObject(); assistant.Add("ByteProperty", value.ByteProperty, true /*withSeparator*/); assistant.Add("ShortByteProperty", value.ShortByteProperty, true /*withSeparator*/); assistant.Add("IntProperty", value.IntProperty, true /*withSeparator*/); assistant.Add("UIntProperty", value.UIntProperty, true /*withSeparator*/); assistant.Add("ShortProperty", value.ShortProperty, true /*withSeparator*/); assistant.Add("UShortProperty", value.UShortProperty, true /*withSeparator*/); assistant.Add("LongProperty", value.LongProperty, true /*withSeparator*/); assistant.Add("ULongProperty", value.ULongProperty, true /*withSeparator*/); assistant.Add("FloatPropertyOne", value.FloatPropertyOne, true /*withSeparator*/); assistant.Add("FloatPropertyTwo", value.FloatPropertyTwo, true /*withSeparator*/); assistant.Add("DoublePropertyOne", value.DoublePropertyOne, true /*withSeparator*/); assistant.Add("DoublePropertyTwo", value.DoublePropertyTwo, true /*withSeparator*/); assistant.Add("CharProperty", value.CharProperty, true /*withSeparator*/); assistant.Add("BoolProperty", value.BoolProperty, true /*withSeparator*/); assistant.Add("DecimalProperty", value.DecimalProperty); assistant.AddEndObject(); // data assistant.AddEndObject(); // main object assistant.HandleMemberSeparator(withSeparator); assistant.DecrementDepth(); }
internal static void Dump(AssistantDumper assistant, PrimitiveBuiltins value, bool withSeparator = false) { assistant.IncrementDepth(); if (assistant.MaximumDepthExceeded()) return; assistant.AddStartObject(); assistant.AddType("Dogen.TestModels.CSharpModel.PrimitiveBuiltins", true/*withSeparator*/); if (value == null) { assistant.Add("data", "<null>"); assistant.AddEndObject(); return; } assistant.AddKey("data"); assistant.AddPairSeparator(); assistant.AddStartObject(); assistant.Add("ByteProperty", value.ByteProperty, true/*withSeparator*/); assistant.Add("ShortByteProperty", value.ShortByteProperty, true/*withSeparator*/); assistant.Add("IntProperty", value.IntProperty, true/*withSeparator*/); assistant.Add("UIntProperty", value.UIntProperty, true/*withSeparator*/); assistant.Add("ShortProperty", value.ShortProperty, true/*withSeparator*/); assistant.Add("UShortProperty", value.UShortProperty, true/*withSeparator*/); assistant.Add("LongProperty", value.LongProperty, true/*withSeparator*/); assistant.Add("ULongProperty", value.ULongProperty, true/*withSeparator*/); assistant.Add("FloatPropertyOne", value.FloatPropertyOne, true/*withSeparator*/); assistant.Add("FloatPropertyTwo", value.FloatPropertyTwo, true/*withSeparator*/); assistant.Add("DoublePropertyOne", value.DoublePropertyOne, true/*withSeparator*/); assistant.Add("DoublePropertyTwo", value.DoublePropertyTwo, true/*withSeparator*/); assistant.Add("CharProperty", value.CharProperty, true/*withSeparator*/); assistant.Add("BoolProperty", value.BoolProperty, true/*withSeparator*/); assistant.Add("DecimalProperty", value.DecimalProperty); assistant.AddEndObject(); // data assistant.AddEndObject(); // main object assistant.HandleMemberSeparator(withSeparator); assistant.DecrementDepth(); }
static internal void Dump(AssistantDumper assistant, AllObjectCollections value, bool withSeparator = false) { assistant.IncrementDepth(); if (assistant.MaximumDepthExceeded()) { return; } assistant.AddStartObject(); assistant.AddType("Dogen.TestModels.CSharpModel.AllObjectCollections", true /*withSeparator*/); if (value == null) { assistant.Add("data", "<null>"); assistant.AddEndObject(); return; } assistant.AddKey("data"); assistant.AddPairSeparator(); assistant.AddStartObject(); assistant.Add("Prop0", value.Prop0, true /*withSeparator*/); assistant.Add("Prop1", value.Prop1, true /*withSeparator*/); assistant.Add("Prop2", value.Prop2, true /*withSeparator*/); assistant.Add("Prop3", value.Prop3, true /*withSeparator*/); assistant.Add("Prop4", value.Prop4, true /*withSeparator*/); assistant.Add("Prop5", value.Prop5, true /*withSeparator*/); assistant.Add("Prop6", value.Prop6, true /*withSeparator*/); assistant.Add("Prop7", value.Prop7, true /*withSeparator*/); assistant.Add("Prop8", value.Prop8, true /*withSeparator*/); assistant.Add("Prop9", value.Prop9, true /*withSeparator*/); assistant.Add("Prop10", value.Prop10, true /*withSeparator*/); assistant.Add("Prop11", value.Prop11); assistant.AddEndObject(); // data assistant.AddEndObject(); // main object assistant.HandleMemberSeparator(withSeparator); assistant.DecrementDepth(); }