Inheritance: Dogen.TestModels.CSharpModel.ThirdChildWithMembers
コード例 #1
0
        public static string Dump(ChildOfAChild1 value)
        {
            var assistant = new AssistantDumper();

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

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

            assistant.DecrementDepth();
        }
コード例 #3
0
        static internal ChildOfAChild1 Create(uint position)
        {
            var result = new ChildOfAChild1();

            Populate(result, position);
            return(result);
        }
コード例 #4
0
        internal static void Dump(AssistantDumper assistant, ChildOfAChild1 value, bool withSeparator = false)
        {
            assistant.IncrementDepth();
            if (assistant.MaximumDepthExceeded())
                return;

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

            assistant.DecrementDepth();
        }
コード例 #5
0
 static internal void Populate(ChildOfAChild1 value, uint position)
 {
     Dogen.TestModels.CSharpModel.ThirdChildWithMembersSequenceGenerator.Populate(value, position);
     value.Prop2 = AssistantSequenceGenerator.CreateInt(position + 0);
 }
コード例 #6
0
 public static string Dump(ChildOfAChild1 value)
 {
     var assistant = new AssistantDumper();
     Dump(assistant, value);
     return assistant.ToString();
 }