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

cs0197.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fe0fec2f421c43648b3eeb19587eae40d2024127 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//cs0197.cs: Can not pass fields of a MarshalByRefObject by ref or out
// Line: 15
using System;
class T : MarshalByRefObject {
	int bar;

	static void Foo (ref int i)
	{
	}

	static void Main()
	{
		T t = new T ();
		t.bar = 12;
		Foo (ref t.bar);
	}
}