Inheritance: Dogen.TestModels.CSharpModel.Descendant1
        internal static void Dump(AssistantDumper assistant, NonSealedLeaf value, bool withSeparator = false)
        {
            assistant.IncrementDepth();
            if (assistant.MaximumDepthExceeded())
                return;

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

            assistant.DecrementDepth();
        }
示例#2
0
        public static string Dump(NonSealedLeaf value)
        {
            var assistant = new AssistantDumper();

            Dump(assistant, value);
            return(assistant.ToString());
        }
示例#3
0
        static internal void Dump(AssistantDumper assistant, NonSealedLeaf value, bool withSeparator = false)
        {
            assistant.IncrementDepth();
            if (assistant.MaximumDepthExceeded())
            {
                return;
            }

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

            assistant.DecrementDepth();
        }
        static internal NonSealedLeaf Create(uint position)
        {
            var result = new NonSealedLeaf();

            Populate(result, position);
            return(result);
        }
 public static string Dump(NonSealedLeaf value)
 {
     var assistant = new AssistantDumper();
     Dump(assistant, value);
     return assistant.ToString();
 }
 static internal void Populate(NonSealedLeaf value, uint position)
 {
     Dogen.TestModels.CSharpModel.Descendant1SequenceGenerator.Populate(value, position);
     value.Prop0 = AssistantSequenceGenerator.CreateInt(position + 0);
 }