コード例 #1
0
        static internal CollectionTestType Create(uint position)
        {
            var result = new CollectionTestType();

            Populate(result, position);
            return(result);
        }
コード例 #2
0
        static internal void Dump(AssistantDumper assistant, CollectionTestType value, bool withSeparator = false)
        {
            assistant.IncrementDepth();
            if (assistant.MaximumDepthExceeded())
            {
                return;
            }

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

            assistant.AddKey("data");
            assistant.AddPairSeparator();
            assistant.AddStartObject();
            assistant.AddKey("BinariesTest");
            assistant.AddPairSeparator();
            System.Collections.Generic.ArrayDumper.Dump(assistant, value.BinariesTest);
            assistant.AddEndObject(); // data
            assistant.AddEndObject(); // main object
            assistant.HandleMemberSeparator(withSeparator);

            assistant.DecrementDepth();
        }
コード例 #3
0
        public static string Dump(CollectionTestType value)
        {
            var assistant = new AssistantDumper();

            Dump(assistant, value);
            return(assistant.ToString());
        }
コード例 #4
0
 static internal void Populate(CollectionTestType value, uint position)
 {
     value.BinariesTest = System.Collections.Generic.ArraySequenceGenerator.Create(position + 0);
 }