-// CS1540: Cannot access protected member `Test.A.Property' via a qualifier of type `Test.A'. The qualifier must be of type `Test.B.C' or derived from it\r
-// Line: 19\r
-\r
-namespace Test\r
-{\r
- public class A\r
- {\r
- protected int Property {\r
- get { return 0; }\r
- }\r
- }\r
- \r
- public class B : A\r
- {\r
- private sealed class C\r
- {\r
- public C (A a)\r
- {\r
- int test = a.Property;\r
- test++;\r
- }\r
- }\r
- } \r
+// CS1540: Cannot access protected member `Test.A.Property' via a qualifier of type `Test.A'. The qualifier must be of type `Test.B.C' or derived from it
+// Line: 19
+
+namespace Test
+{
+ public class A
+ {
+ protected int Property {
+ get { return 0; }
+ }
+ }
+
+ public class B : A
+ {
+ private sealed class C
+ {
+ public C (A a)
+ {
+ int test = a.Property;
+ test++;
+ }
+ }
+ }
}
\ No newline at end of file