public void Bar()
        {
            var x = Foo; // one warning (SecurityException)
            Foo = "test"; // one warning (SerializationException)

            var y = new PropertyAccessorSpecificExceptions();
            var b = y["abc"]; // one warning (SecurityException)
            y["abc"] = "h"; // one warning (SerializationException)

            var z = Blu; // two warnings
            Blu = "test"; // two warnings
        }
        public void Bar()
        {
            var x = Foo;  // one warning (SecurityException)

            Foo = "test"; // one warning (SerializationException)

            var y = new PropertyAccessorSpecificExceptions();
            var b = y["abc"]; // one warning (SecurityException)

            y["abc"] = "h";   // one warning (SerializationException)

            var z = Blu;      // two warnings

            Blu = "test";     // two warnings
        }