[System] Throw PlatformNotSupportedException if NetworkInformation.NetworkChange...
[mono-project.git] / mcs / tests / test-61.cs
blob639aaf6e6179f18e7de0ab94c62a9edf9616399d
1 //
2 // This tests checks that we allow the `get' and `set' keywords inside
3 // the get and set blocks. It does the same for Events special remove
4 // and add keywords.
5 //
6 class X {
7 int Property {
8 get {
9 int get;
10 get = 1;
11 return get;
13 set {
14 int set;
15 set = value;
19 int P2 {
20 get { return 0; }
23 int P3 {
24 set { }
27 public delegate void MyEvent ();
29 public event MyEvent XX {
30 add { int add = 1; }
31 remove { int remove = 1; }
34 public static int Main ()
36 return 0;