[w32handle] Stop returning 0 in every cases for locking/unlocking (#3926)
[mono.git] / mcs / tools / linker / Tests / TestCases / Linker / ReferenceInVirtualMethod / Library.cs
1
2 using System;
3
4 public class Foo {
5
6         public void Do ()
7         {
8                 Bar b = new Baz ();
9                 b.Bang ();
10         }
11 }
12
13 public class Bar {
14
15         public virtual void Bang ()
16         {
17         }
18 }
19
20 public class Baz : Bar {
21
22         private string _hey;
23
24         public string Hey {
25                 [NotLinked] get { return _hey; }
26                 [NotLinked] set { _hey = value; }
27         }
28
29         public override void Bang ()
30         {
31                 Console.WriteLine (_hey);
32         }
33 }
34
35 [NotLinked] public class NotLinkedAttribute : Attribute {}