﻿<?xml version="1.0" encoding="utf-8"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS0162</ErrorName>
  <Examples>
    <string>// cs0162.cs: Unreachable code detected
// Line: 18
// Compiler options: -warnaserror -warn:2

using System;

class C {
	public enum Flags {
		Removed	= 0,
		Public	= 1
	}

	public Flags	_enumFlags;
		
	internal void Close()
	{	
		if ((_enumFlags &amp; Flags.Removed) != 0)
			Console.WriteLine ("error");
	}
}
</string>
    <string>// cs0162.cs: Unreachable code detected
// Line: 18
// Compiler options: -warnaserror -warn:2

using System;

class C {
	public enum Flags {
		Removed	= 0,
		Public	= 1
	}

	public Flags	_enumFlags;
		
	internal void Close()
	{	
		if ((Flags.Removed &amp; _enumFlags) != (Flags.Removed &amp; _enumFlags))
			Console.WriteLine ("error");
	}
}
</string>
    <string>// cs0162.cs: Unreachable code detected
// Line: 13
// Compiler options: -warnaserror -warn:2

using System;

class C {
	bool T () { return true; }

	void Close()
	{	
		if (T () &amp;&amp; false)
			Console.WriteLine ("error");
	}
}

class XXXX { static void Main () {} }
</string>
    <string>// cs0162.cs: Unreachable code detected
// Line: 12
// Compiler options: -warnaserror -warn:2

using System;

class E
{
   public void Method (int i)
   {
       throw new ArgumentNullException ();
       Console.WriteLine ("Once upon a time..");
   }
}
</string>
  </Examples>
</ErrorDocumentation>