<?xml version="1.0"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS0472</ErrorName>
  <Examples>
    <string>// CS0472: The result of comparing value type `byte' with null is always `false'
// Line: 9
// Compiler options: -warnaserror -warn:2

class C
{
	public static bool Test (byte value)
	{
		if (value == null)
			return false;

		return true;
	}
}
</string>
    <string>// CS0472: The result of comparing value type `long' with null is always `false'
// Line: 9
// Compiler options: -warnaserror -warn:2

class C
{
	public static void Main ()
	{
		System.Console.WriteLine(5 == (long?)null);
	}
}
</string>
    <string>// CS0472: The result of comparing value type `int' with null is always `true'
// Line: 9
// Compiler options: -warnaserror -warn:2

public class X
{
	public static void Compute (int x)
	{
		if (true &amp;&amp; x != null)
			return;
	}
}
</string>
    <string>// CS0472: The result of comparing value type `int' with null is always `false'
// Line: 8
// Compiler options: -warnaserror -warn:2

public class X {
	public static bool Compute (int x)
	{
		return x == null;
	}
}
</string>
    <string>// CS0472: The result of comparing value type `int' with null is always `false'
// Line: 12
// Compiler options: -warnaserror

using System;

class X
{
	public static void Main ()
	{
		int i = 0;
		var x = i == default (byte?);
	}
}
</string>
    <string>// CS0472: The result of comparing value type `E' with null is always `false'
// Line: 14
// Compiler options: -warnaserror

enum E
{
}

class X
{
	public static void Main ()
	{
		E u = 0;
		var b = u == (E?)null;
	}
}</string>
    <string>// CS0472: The result of comparing value type `int' with null is always `true'
// Line: 8
// Compiler options: -warnaserror -warn:2

public class X {
	public static bool Compute (int x)
	{
		return x != null;
	}
}
</string>
  </Examples>
</ErrorDocumentation>