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

cs0272.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f9fd2015ee1c3599261697c2a415d69ae57d9e3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// cs0272.cs: The property or indexer 'P.Prop' cannot be used in this context because the set accessor is inaccessible
// Line: 19

class P
{
    public static int Prop
    {
	get {
	    return 4;
	}
	private set {}
    }
}

public class C
{
    public static void Main ()
    {
	P.Prop = 453422;
    }
}