a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
24 lines
298 B
C#
24 lines
298 B
C#
// CS0154: The property or indexer `A.name' cannot be used in this context because it lacks the `get' accessor
|
|
// Line: 21
|
|
|
|
public class A
|
|
{
|
|
public string name
|
|
{
|
|
set
|
|
{
|
|
name = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
public class B
|
|
{
|
|
public static void Main ()
|
|
{
|
|
A a = new A ();
|
|
string b = a.name;
|
|
}
|
|
}
|
|
|