* ILParser.jay: Same as below but with float64 ()
[mono.git] / mcs / errors / cs0197.cs
1 // cs0197.cs: You cant pass by ref or out a member or field of a MarshalByRefObjectClass.
2 // Line: 14
3
4 namespace cs0197
5 {
6         public class A: MarshalByRefObject
7         {
8                 public string s;
9         }
10                 
11         public class B
12         {
13                 public class ConCat (ref string s)
14                 {
15                         s += ' Error';
16                 }
17                 
18                 static void Main()
19                 {
20                         A Foo = new A ();
21                         Foo.s = 'cs0197';
22                         this.ConCat (ref Foo.s);
23                         Console.WriteLine (Foo.s);                      
24                 }
25         }
26 }