update readme (#21797)
[mono-project.git] / mcs / errors / cs0271-2.cs
blobf01ea5e07b4b9b5284cda238b887881da8b3ee5b
1 // CS0271: The property or indexer `Test.A.B' cannot be used in this context because the get accessor is inaccessible
2 // Line: 17
4 using System;
6 public class Test
8 private class A
10 public string B { protected get; set; }
13 static void Main ()
15 A a = new A ();
16 a.B = "foo";
17 string b = a.B;