Beispiel #1
0
        public void DumpObjectList()
        {
            var t = new System.Collections.Generic.List <Evands.Pellucid.ProDemo.Sample.SampleItem>();

            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(1, "Item A", true, "IA"));
            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(2, "Item B", true));
            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(3, "Item C", true));
            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(4, "Item 4", true, "Four", "Item Four"));
            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(5, "Item 5", true, "Five", "Item Five", "Item 5"));
            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(6, "Item F", true));
            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(7, "Item G", true, "Item G", "Item Gee", "Item Jee"));
            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(8, "Item Name H", true));
            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(9, "Eye", true, "Item I", "I", "Item Eye"));
            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(10, "Jay", true));

            var nc = new Evands.Pellucid.ProDemo.Sample.NestedSample("Nested Container", t);

            nc.Dump();
        }
Beispiel #2
0
        public void DumpObjectList(
            [Flag("full", 'f', "Writes type names with their full name.", true)] bool full)
        {
            var t = new System.Collections.Generic.List <Evands.Pellucid.ProDemo.Sample.SampleItem>();

            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(1, "Item A", true, "IA"));
            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(2, "Item B", true));
            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(3, "Item C", true));
            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(4, "Item 4", true, "Four", "Item Four"));
            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(5, "Item 5", true, "Five", "Item Five", "Item 5"));
            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(6, "Item F", true));
            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(7, "Item G", true, "Item G", "Item Gee", "Item Jee"));
            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(8, "Item Name H", true));
            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(9, "Eye", true, "Item I", "I", "Item Eye"));
            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(10, "Jay", true));
            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(11, null, false, null));

            var nc = new Evands.Pellucid.ProDemo.Sample.NestedSample("Nested Container", t);

            nc.Dump(full);
        }
Beispiel #3
0
        public void DumpObjectList(
            [Operand("max", "When provided, indicates the maximum number of times the object being dumped should be recursed.")] int max,
            [Flag("full", 'f', "Writes type names with their full name.", true)] bool full)
        {
            var t = new System.Collections.Generic.List <Evands.Pellucid.ProDemo.Sample.SampleItem>();

            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(1, "Item A", true, "IA"));
            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(2, "Item B", true));
            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(3, "Item C", true));
            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(4, "Item 4", true, "Four", "Item Four"));
            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(5, "Item 5", true, "Five", "Item Five", "Item 5"));
            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(6, "Item F", true));
            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(7, "Item G", true, "Item G", "Item Gee", "Item Jee"));
            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(8, "Item Name H", true));
            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(9, "Eye", true, "Item I", "I", "Item Eye"));
            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(10, "Jay", true));
            t.Add(new Evands.Pellucid.ProDemo.Sample.SampleItem(11, null, false, null));

            var nc = new Evands.Pellucid.ProDemo.Sample.NestedSample("Nested Container", t);

            nc.Dump(max, full);
        }