[corlib] Make Marshal.BufferToBSTR(Array, int) non-public again (#5670)
[mono.git] / mcs / errors / cs0271-2.cs
1 // CS0271: The property or indexer `Test.A.B' cannot be used in this context because the get accessor is inaccessible
2 // Line: 17
3
4 using System;
5
6 public class Test
7 {
8         private class A
9         {
10                 public string B { protected get; set; }
11         }
12         
13         static void Main ()
14         {
15                 A a = new A ();
16                 a.B = "foo";
17                 string b = a.B;
18         }
19 }