<?xml version="1.0" encoding="us-ascii"?>
<ErrorDocumentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ErrorName>CS1674</ErrorName>
  <Examples>
    <string>// cs1674-2.cs: `object': type used in a using statement must be implicitly convertible to `System.IDisposable'
// Line: 10

using System;

class C
{
	void Method (IDisposable i)
	{
		using (object o = i)
		{
		}
    }
}</string>
    <string>// CS1674: `NoIDispose': type used in a using statement must be implicitly convertible to `System.IDisposable'
// Line: 27

using System;

class MyDispose : IDisposable {
	public bool disposed;
	
	public void Dispose ()
	{
		disposed = true;
	}
}

class NoIDispose {
	static public MyDispose x;

	public NoIDispose ()
	{
	}
	
	static NoIDispose ()
	{
		x = new MyDispose ();
	}
	
	public static implicit operator MyDispose (NoIDispose a)
	{
		return x;
	}
}

class Y {
	static void B ()
	{
		using (NoIDispose a = new NoIDispose ()){
		}
	}
	
}

</string>
    <string>// CS1674: `int': type used in a using statement must be implicitly convertible to `System.IDisposable'
// Line: 10

using System;

class C
{
	void Method (IDisposable i)
	{
		using (int o = 1, b = 2)
		{
		}
	}
}
</string>
    <string>// cs1674.cs: `int': type used in a using statement must be implicitly convertible to `System.IDisposable'
// Line: 8

class C
{
    void Method (int arg)
    {
	using (arg)
	{
	}
    }
}</string>
  </Examples>
</ErrorDocumentation>