blob: 115bb988c3ab795ca915b2ee575d16f14b4cd6b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// cs1690.cs: Cannot call methods, properties, or indexers on 'A.point' because it is a value type member of a marshal-by-reference class
// Line: 21
using System;
public struct Point
{
public bool Error { get { return true; } }
}
public class A : MarshalByRefObject
{
public Point point = new Point ();
}
public class Test
{
public static void Main ()
{
A a = new A ();
bool b = a.point.Error;
}
}
|