﻿<?xml version="1.0" encoding="utf-8"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS1690</ErrorName>
  <Examples>
    <string>// cs1690-2.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;
   }
}
</string>
    <string>// cs1690-3.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 this [int i] { set { } }
}

public class A : MarshalByRefObject
{
   public Point point = new Point ();
}

public class Test
{
   public static void Main ()
   {
        A a = new A ();
        a.point [3] = false;
   }
}
</string>
    <string>// 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 void Error () {}
}

public class A : MarshalByRefObject
{
   public Point point = new Point ();
}

public class Test
{
   public static void Main ()
   {
        A a = new A ();
        a.point.Error ();
   }
}
</string>
  </Examples>
</ErrorDocumentation>