<?xml version="1.0"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS0728</ErrorName>
  <Examples>
    <string>// CS0728: Possibly incorrect assignment to `token' which is the argument to a using or lock statement
// Line: 11
// Compiler options: -warnaserror

public class Foo
{
	public static void Main ()
	{
		object token = new object ();
		lock (token)
		{
			Foo2 (ref token);
		}
	}
	
	static void Foo2 (ref object o)
	{
	}
}
</string>
    <string>// CS0728: Possibly incorrect assignment to `s' which is the argument to a using or lock statement
// Line: 12
// Compiler options: -warnaserror

public class Foo
{
	public static void Test (ref string s)
	{
		lock (s) {
			lock (s) {}
			s = null;
		}
	}
}
</string>
    <string>// CS0728: Possibly incorrect assignment to `d' which is the argument to a using or lock statement
// Line: 12
// Compiler options: -warnaserror

using System;

public class Foo
{
	public static void Test (IDisposable d)
	{
		using (d) {
			d = null;
		}
	}
}
</string>
  </Examples>
</ErrorDocumentation>