コード例 #1
0
        public static string Dump(AllObjectCollections value)
        {
            var assistant = new AssistantDumper();

            Dump(assistant, value);
            return(assistant.ToString());
        }
コード例 #2
0
        static internal AllObjectCollections Create(uint position)
        {
            var result = new AllObjectCollections();

            Populate(result, position);
            return(result);
        }
コード例 #3
0
 static internal void Populate(AllObjectCollections value, uint position)
 {
     value.Prop0  = AssistantSequenceGenerator.CreateArrayList(position + 0);
     value.Prop1  = AssistantSequenceGenerator.CreateIEnumerable(position + 1);
     value.Prop2  = AssistantSequenceGenerator.CreateICollection(position + 2);
     value.Prop3  = AssistantSequenceGenerator.CreateIList(position + 3);
     value.Prop4  = AssistantSequenceGenerator.CreateHashtable(position + 4);
     value.Prop5  = AssistantSequenceGenerator.CreateIDictionary(position + 5);
     value.Prop6  = AssistantSequenceGenerator.CreateHybridDictionary(position + 6);
     value.Prop7  = AssistantSequenceGenerator.CreateNameValueCollection(position + 7);
     value.Prop8  = AssistantSequenceGenerator.CreateBitArray(position + 8);
     value.Prop9  = AssistantSequenceGenerator.CreateQueue(position + 9);
     value.Prop10 = AssistantSequenceGenerator.CreateStack(position + 10);
     value.Prop11 = AssistantSequenceGenerator.CreateSortedList(position + 11);
 }
コード例 #4
0
        static internal void Dump(AssistantDumper assistant, AllObjectCollections value, bool withSeparator = false)
        {
            assistant.IncrementDepth();
            if (assistant.MaximumDepthExceeded())
            {
                return;
            }

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

            assistant.AddKey("data");
            assistant.AddPairSeparator();
            assistant.AddStartObject();
            assistant.Add("Prop0", value.Prop0, true /*withSeparator*/);
            assistant.Add("Prop1", value.Prop1, true /*withSeparator*/);
            assistant.Add("Prop2", value.Prop2, true /*withSeparator*/);
            assistant.Add("Prop3", value.Prop3, true /*withSeparator*/);
            assistant.Add("Prop4", value.Prop4, true /*withSeparator*/);
            assistant.Add("Prop5", value.Prop5, true /*withSeparator*/);
            assistant.Add("Prop6", value.Prop6, true /*withSeparator*/);
            assistant.Add("Prop7", value.Prop7, true /*withSeparator*/);
            assistant.Add("Prop8", value.Prop8, true /*withSeparator*/);
            assistant.Add("Prop9", value.Prop9, true /*withSeparator*/);
            assistant.Add("Prop10", value.Prop10, true /*withSeparator*/);
            assistant.Add("Prop11", value.Prop11);
            assistant.AddEndObject(); // data
            assistant.AddEndObject(); // main object
            assistant.HandleMemberSeparator(withSeparator);

            assistant.DecrementDepth();
        }