<?xml version="1.0"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS0206</ErrorName>
  <Examples>
    <string>// CS0206: A property, indexer or dynamic member access may not be passed as `ref' or `out' parameter
// Line: 16

using System;

public class Test
{
	public static void WriteOutData (out dynamic d)
	{
		d = 5.0;
	}

	public static void Main (string[] args)
	{
		dynamic d = null;
		WriteOutData (out d.Foo);
	}
}

</string>
    <string>// CS0206: A property, indexer or dynamic member access may not be passed as `ref' or `out' parameter
// Line: 15

class X {
	static int P { get { return 1; } set { } }

	static int m (out int v)
	{
		v = 1;
		return 1;
	}
	
	static void Main ()
	{
		m (out P);
	}
}
</string>
    <string>// CS0206: A property, indexer or dynamic member access may not be passed as `ref' or `out' parameter
// Line: 10

class X
{
	static int P { get; set; }

	static void Main ()
	{
		ref int rl = ref P;
	}
}</string>
    <string>// CS0206: A property, indexer or dynamic member access may not be passed as `ref' or `out' parameter
// Line: 22

using System;

namespace N
{
	public class Test
	{
		public double this[int i]
		{
			get { return 1; }
		}

		public static void WriteOutData(out double d)
		{
			d = 5.0;
		}

		public static void Main(string[] args)
		{
			Test test = new Test();
			WriteOutData(out test[1]);
		}
	}
}

</string>
    <string>// CS0206: A property, indexer or dynamic member access may not be passed as `ref' or `out' parameter
// Line: 14

class C
{
	static void Foo (ref object o)
	{
	}
	
	public static void Main ()
	{
		var v = new { Foo = "Bar" };
		
		Foo (ref v.Foo);
	}
}
</string>
  </Examples>
</ErrorDocumentation>