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

            assistant.AddStartObject();
            assistant.AddType("Phi.NoFields", 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();
        }
Esempio n. 2
0
        public static string Dump(NoFields value)
        {
            var assistant = new AssistantDumper();

            Dump(assistant, value);
            return(assistant.ToString());
        }
Esempio n. 3
0
        static internal NoFields Create(uint position)
        {
            var result = new NoFields();

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