Beispiel #1
0
        public void UseNestedActionTwoInts()
        {
            var n = new Issue921Nested(400);

            foreach (var item in new[] { 1, 2, 3 })
            {
                n.DoWithNumbers(item, item, item);
            }
        }
Beispiel #2
0
        public void UseNestedFunOneIntStatic()
        {
            var n = new Issue921Nested(500);

            new[] { 1, 2, 3 }.Select(x => Issue921Nested.ComputeNumberStatic(x));
        }
Beispiel #3
0
        public void UseNestedFunOneInt()
        {
            var n = new Issue921Nested(300);

            new[] { 1, 2, 3 }.Select(x => n.ComputeNumber(x));
        }
Beispiel #4
0
        public void UseNestedFuncTwoInts()
        {
            var n = new Issue921Nested(400);

            new[] { 1, 2, 3 }.Select((x, i) => n.ComputeTwoNumbers(x, i));
        }
Beispiel #5
0
        public void UseAField2()
        {
            var n = new Issue921Nested(200);

            var t = n.Name.Select(x => x);
        }