Example #1
0
        static internal void Dump(AssistantDumper assistant, ParentWithMembers value, bool withSeparator = false)
        {
            assistant.IncrementDepth();
            if (assistant.MaximumDepthExceeded())
            {
                return;
            }

            assistant.AddStartObject();
            assistant.AddType("CSharpRefImpl.CSharpModel.ParentWithMembers", true /*withSeparator*/);
            if (value == null)
            {
                assistant.Add("data", "<null>");
                assistant.AddEndObject();
                return;
            }

            assistant.AddKey("data");
            assistant.AddPairSeparator();
            assistant.AddStartObject();
            assistant.Add("Prop0", value.Prop0);
            assistant.AddEndObject(); // data
            assistant.AddEndObject(); // main object
            assistant.HandleMemberSeparator(withSeparator);

            assistant.DecrementDepth();
        }
Example #2
0
 public static string Dump(ParentWithMembers value)
 {
     return(value.Dump());
 }
Example #3
0
 static internal void Populate(ParentWithMembers value, uint position)
 {
     value.Prop0 = AssistantSequenceGenerator.CreateInt(position + 0);
 }