Inheritance: Dogen.TestModels.CSharpModel.ParentWithMembers
        static internal SecondChildWithoutMembers Create(uint position)
        {
            var result = new SecondChildWithoutMembers();

            Populate(result, position);
            return(result);
        }
示例#2
0
        public static string Dump(SecondChildWithoutMembers value)
        {
            var assistant = new AssistantDumper();

            Dump(assistant, value);
            return(assistant.ToString());
        }
示例#3
0
        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();
        }
        internal static 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 Populate(SecondChildWithoutMembers value, uint position)
 {
     Dogen.TestModels.CSharpModel.ParentWithMembersSequenceGenerator.Populate(value, position);
 }
 public static string Dump(SecondChildWithoutMembers value)
 {
     var assistant = new AssistantDumper();
     Dump(assistant, value);
     return assistant.ToString();
 }