repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
**** Merged from MCS ****
[mono-project.git]
/
mcs
/
errors
/
cs0197.cs
blob
fe0fec2f421c43648b3eeb19587eae40d2024127
1
//cs0197.cs: Can not pass fields of a MarshalByRefObject by ref or out
2
// Line: 15
3
using
System
;
4
class
T
:
MarshalByRefObject
{
5
int
bar
;
6
7
static void
Foo
(
ref int
i
)
8
{
9
}
10
11
static void
Main
()
12
{
13
T t
=
new
T
();
14
t
.
bar
=
12
;
15
Foo
(
ref
t
.
bar
);
16
}
17
}
18
19
20
21
22
23