コード例 #1
0
        public void f3()
        {
            doSomething(new[] { new Foo (),
                                new Foo ()});

            List<int> d = new List<int> { 0, 1, 2, 3, 4,
                                        5, 6, 7, 8, 9 };

            var b = new { A = 1, B = 2,
                                C = 3, D = 4};

            var c = new DummyCl { A = 1, B = 2,
                                C = 3, D = 4};
        }
コード例 #2
0
        public void f3()
        {
            doSomething(new[] { new Foo(),
                                new Foo() });

            List <int> d = new List <int> {
                0, 1, 2, 3, 4,
                5, 6, 7, 8, 9
            };

            var b = new { A = 1, B = 2,
                          C = 3, D = 4 };

            var c = new DummyCl {
                A = 1, B = 2,
                C = 3, D = 4
            };
        }