Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0154.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 686ee5ec143cc94334cb05161ad5dccf120153f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// cs0154.cs: 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;
	}
}