<?xml version="1.0"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS0252</ErrorName>
  <Examples>
    <string>// CS0252: Possible unintended reference comparison. Consider casting the left side expression to type `string' to get value comparison
// Line: 10
// Compiler options: -warn:2 -warnaserror

using System;

class X {
	static void Main() {
		object a = "11";
		Console.WriteLine(a == "11");
	}
}
</string>
    <string>// CS0252: Possible unintended reference comparison. Consider casting the left side expression to type `A' to get value comparison
// Line: 15
// Compiler options: -warnaserror

using System;

class A
{
	public override int GetHashCode ()
	{
		return base.GetHashCode ();
	}
	
	public override bool Equals (object obj)
	{
		return obj != this;
	}
	
	public static bool operator == (A left, A right)
	{
		return true;
	}
	
	public static bool operator != (A left, A right)
	{
		return false;
	}
}
</string>
  </Examples>
</ErrorDocumentation>