<?xml version="1.0"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS0037</ErrorName>
  <Examples>
    <string>// CS0037: Cannot convert null to `bool' because it is a value type
// Line: 19


using System;

class TestA
{
	public string Select (Func&lt;TestA, bool&gt; f)
	{
		return "";
	}
}

public class C
{
	static void Main ()
	{
		string foo = from a in new TestA () select null;
	}
}
</string>
    <string>// CS0037: Cannot convert null to `char' because it is a value type
// Line: 8

class Test
{
	static void Main ()
	{
		char p = null;
	}
}
</string>
    <string>// CS0037: Cannot convert null to `byte' because it is a value type
// Line : 7

public class Blah {

	public enum MyEnum : byte {
		Foo = null,
		Bar
	}

	public static void Main ()
	{
	}
}
</string>
    <string>// CS0037: Cannot convert null to `int' because it is a value type
// Line: 9

class X {
	static void Main ()
	{
		int s = 44;
		switch (s) {
			case null: break;
		}
	}
}
</string>
    <string>// CS0037: Cannot convert null to `int' because it is a value type
// Line: 6

class C
{
	object [,] i = new int [2,1] { { null }, { 2 } };
}
 </string>
    <string>// CS0037: Cannot convert null to `bool' because it is a value type
// Line: 13

using System;

public sealed class BoundAttribute : System.Attribute
{
	public bool Dec { set { } get { return false; } }
}

class C
{
	[Bound (Dec = null)]
	double d2;
}</string>
    <string>// CS0037: Cannot convert null to `char' because it is a value type
// Line: 12

class C
{
	static void Test ()
	{
		char c = 'c';
		switch (c)
		{
			case 'a': 
				goto case null;
		}
	}
}
</string>
    <string>// CS0037: Cannot convert null to `int' because it is a value type
// Line: 6

class C
{
	int [,] i = new int [2,null] { { 1 }, { 2 } };
}
 
</string>
    <string>// CS0037: Cannot convert null to `S' because it is a value type
// Line: 10
struct S {
	int a;
}

class X {
	static void Main ()
	{
		S s = (S) null;
	}
}
</string>
  </Examples>
</ErrorDocumentation>