Exemple #1
0
        public void Foo1()
        {
            Action x = delegate
            {
                throw new SecurityException(); // Hint
            };

            Action y = delegate
            {
                var a = 10;
                Bar(); // Hint
            };

            Action z = delegate
            {
                var b = new DelegateIssues(); // Hint
            };
        }
Exemple #2
0
 public void FooDirectCalls()
 {
     Bar();                        // Warning
     var c = new DelegateIssues(); // Warning
 }