19 lines
293 B
C#
19 lines
293 B
C#
|
// CS0272: The property or indexer `Test.A.B' cannot be used in this context because the set accessor is inaccessible
|
||
|
// Line: 16
|
||
|
|
||
|
using System;
|
||
|
|
||
|
public class Test
|
||
|
{
|
||
|
private class A
|
||
|
{
|
||
|
public string B { get; private set; }
|
||
|
}
|
||
|
|
||
|
static void Main ()
|
||
|
{
|
||
|
A a = new A ();
|
||
|
a.B = "Foo";
|
||
|
}
|
||
|
}
|