[System] Throw PlatformNotSupportedException if NetworkInformation.NetworkChange...
[mono-project.git] / mcs / tests / test-294.cs
blob1f4750e0e9fee1004b0be2cd33c1cf96cd330b84
1 // Compiler options: -warnaserror -warn:4 -nowarn:169
3 using System;
5 [Obsolete]
6 class ObsoleteClass
10 public class Test
12 private string _name;
14 [Obsolete()]
15 public Test() : this("layout", false)
19 [Obsolete()]
20 public Test(string a, bool writeToErrorStream)
22 Name = a;
25 [Obsolete()]
26 public string Name
28 get { return _name; }
29 set { _name = value; }
33 [Obsolete]
34 public class DerivedTest : Test
36 ObsoleteClass member;
38 [Obsolete]
39 public DerivedTest(string a) : base(a, false)
41 Name = a;
44 public string Method ()
46 return base.Name;
49 [Obsolete]
50 public void T2 () {}
52 public static void Main () {}
55 [Obsolete]
56 class ObsoleteClass2: ObsoleteClass
61 class ObsoleteClass3
63 public static readonly double XSmall = 0.6444444444444;
65 [Obsolete ("E1")]
66 public readonly double X_Small = XSmall;
68 [Obsolete ("E2")]
69 public static readonly double X_Small2 = XSmall;
73 class ObsoleteClass4
75 [Obsolete]
76 public void T ()
78 lock (typeof (ObsoleteClass4)) {}
79 lock (typeof (ObsoleteClass2)) {}