public static string Dump(NoProperties value)
        {
            var assistant = new AssistantDumper();

            Dump(assistant, value);
            return(assistant.ToString());
        }
        static internal void Dump(AssistantDumper assistant, NoProperties value, bool withSeparator = false)
        {
            assistant.IncrementDepth();
            if (assistant.MaximumDepthExceeded())
            {
                return;
            }

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

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

            assistant.DecrementDepth();
        }
Exemplo n.º 3
0
        static internal NoProperties Create(uint position)
        {
            var result = new NoProperties();

            return(result);
        }
Exemplo n.º 4
0
 static internal void Populate(NoProperties value, uint position)
 {
     // nothing to populate
 }