상속: Dogen.TestModels.CSharpModel.Base
예제 #1
0
        static internal 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, 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();
        }
예제 #3
0
 public static string Dump(Descendant1 value)
 {
     return(value.Dump());
 }
 public static string Dump(Descendant1 value)
 {
     return value.Dump();
 }
예제 #5
0
 static internal void Populate(Descendant1 value, uint position)
 {
     Dogen.TestModels.CSharpModel.BaseSequenceGenerator.Populate(value, position);
 }