﻿<?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>CS0177</ErrorName>
  <Examples>
    <string>// cs0177-2.cs: The out parameter `f' must be assigned to before control leaves the current method
// Line: 5

class ClassMain {
	public static void test2 (int a, out float f)
	{
		// CS0177
		if (a == 5)
			return;

		f = 8.53F;
	}
}

</string>
    <string>// cs0177-3.cs: The out parameter `f' must be assigned to before control leaves the current method
// Line: 5

class C {
	public static void test3 (out float f)
	{
		try {
			f = 8.53F;
		} catch {
			return;
		}
	}
}

</string>
    <string>// cs0177-4.cs: The out parameter `f' must be assigned to before control leaves the current method
// Line: 5

class C {
	public static void test (int a, out float f)
	{
		do {
			// CS0177
			if (a == 8) {
				System.Console.WriteLine ("Hello");
				return;
			}
		} while (false);

		f = 1.3F;
		return;
	}
}

</string>
    <string>// cs0177.cs: The out parameter `display' must be assigned to before control leaves the current method
// Line: 5

class ClassMain {
        void Error(out bool display) {
        }
    
        public static void Main() {
        }
}

</string>
  </Examples>
</ErrorDocumentation>