Inheritance: Dogen.TestModels.CSharpModel.ParentWithMembers
コード例 #1
0
        static internal void Dump(AssistantDumper assistant, ThirdChildWithMembers value, bool withSeparator = false)
        {
            assistant.IncrementDepth();
            if (assistant.MaximumDepthExceeded())
            {
                return;
            }

            assistant.AddStartObject();
            assistant.AddType("Dogen.TestModels.CSharpModel.ThirdChildWithMembers", 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, true /*withSeparator*/);
            assistant.Add("Prop1", value.Prop1);
            assistant.AddEndObject(); // data
            assistant.AddEndObject(); // main object
            assistant.HandleMemberSeparator(withSeparator);

            assistant.DecrementDepth();
        }
コード例 #2
0
        internal static void Dump(AssistantDumper assistant, ThirdChildWithMembers value, bool withSeparator = false)
        {
            assistant.IncrementDepth();
            if (assistant.MaximumDepthExceeded())
                return;

            assistant.AddStartObject();
            assistant.AddType("Dogen.TestModels.CSharpModel.ThirdChildWithMembers", 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, true/*withSeparator*/);
            assistant.Add("Prop1", value.Prop1);
            assistant.AddEndObject(); // data
            assistant.AddEndObject(); // main object
            assistant.HandleMemberSeparator(withSeparator);

            assistant.DecrementDepth();
        }
コード例 #3
0
 public static string Dump(ThirdChildWithMembers value)
 {
     return(value.Dump());
 }
コード例 #4
0
 static internal void Populate(ThirdChildWithMembers value, uint position)
 {
     Dogen.TestModels.CSharpModel.ParentWithMembersSequenceGenerator.Populate(value, position);
     value.Prop1 = AssistantSequenceGenerator.CreateInt(position + 0);
 }
コード例 #5
0
 public static string Dump(ThirdChildWithMembers value)
 {
     return value.Dump();
 }