<?xml version="1.0" encoding="iso-8859-1"?>
<ErrorDocumentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ErrorName>CS0165</ErrorName>
  <Examples>
    <string>// CS0165: Use of unassigned local variable `fb'
// Line: 15
using System.Collections;

public class EntryPoint {
  public static void Main() {
    ArrayList fields = new ArrayList();

    Field fb;
    for (int i = 0; i &lt; fields.Count; i++) {
      if (((Field) fields[i]).Name == "abc") {
        fb = (Field) fields[i];
	break;
      }
    }

    if (fb.Name != "b") {
    }
  }

  public class Field
  {
    public string Name;
  }
}

</string>
    <string>// CS0165: Use of unassigned local variable `fb'
// Line: 17

using System.Collections;

public class EntryPoint
{
	public static void Main ()
	{
		ArrayList fields = new ArrayList ();

		Field fb;
		while (fields.Count &gt; 0) {
			fb = (Field) fields[0];
		}

		if (fb.Name != "b") {
			System.Console.WriteLine ("shouldn't compile here.");
		}
	}

	public class Field
	{
		public string Name;
	}
}

</string>
    <string>// CS0165: Use of unassigned local variable `foo'
// Line: 17

class X
{
        static void Main ()
        {
                int foo;

                int i = 0;
                if (i == 1)
                        goto e;

                goto f;

        b:
                i += foo;

        c:
                goto b;

        e:
                foo = 5;

        f:
                goto c;
        }
}
</string>
    <string>// CS0165: Use of unassigned local variable `foo'
// Line: 17

struct Rectangle
{
	int x;
	public int X {
		set { }
	}
}

public class Foo
{
	public static void Main ()
	{
		Rectangle foo;
		foo.X = 5;
	}
}
</string>
    <string>// CS0165: Use of unassigned local variable `y'
// Line: 12

class test
{
        static void Main(string[] args)
        {
                {
                        int x = 8;
                }
                string y;
                args[0] = y;    // use of unassigned variable y
        }
}
</string>
    <string>// CS0165: Use of unassigned local variable `errors'
// Line: 9

class T
{
	static void Main ()
	{
		dynamic errors;
		errors.Call ();
	}
}
</string>
    <string>// Cs0165: Use of unassigned local variable `c'
// Line: 9

public class C
{
	public static void Main ()
	{
		C c;
		c.ToString ();
	}
}
</string>
    <string>// CS0165: Use of unassigned local variable `t'
// Line: 8

public class Foo&lt;T&gt;
{
	public static bool Test ()
	{
		T t;
		return t is int;
	}
}
</string>
    <string>// CS0165: Use of unassigned local variable `a'
// Line: 11

using System.Linq;

class M
{
	public static void Main ()
	{
		int[] a;
		int m = a.FirstOrDefault&lt;int&gt; ();
	}
}
</string>
    <string>// CS0165: Use of unassigned local variable `s'
// Line: 10
// Compiler options: -r:CS0165-19-lib.dll

class Program
{
	static void Main ()
	{
		S s;
		s.Test ();
	}
}</string>
    <string>// CS0165: Use of unassigned local variable `x'
// Line: 16

class T {
	void fun (ref int a)
	{
		if (a == 3)
		a = 2;
	}

	void x ()
	{
		int x;

		if (System.Console.Read () == 1)
			x = 1;
		fun (ref x);
	}
}
</string>
    <string>// CS0165: Use of unassigned local variable `s'
// Line: 9

class Program
{
	static void Main ()
	{
		S s;
		s.Test ();
	}
}

struct S
{
	string pp;
	
	public void Test ()
	{
	}
}</string>
    <string>// CS0165: Use of unassigned local variable `s'
// Line: 9

public class Test
{
        public static string Foo {
                get {
                        string s;
                        if (0 == 1 &amp;&amp; (s = "") == "a" || s == "")
                                return s;
                        return " ";
                }
        }
}</string>
    <string>// CS0165: Use of unassigned local variable `a'
// Line: 9

class C {
	public static int test4 ()
	{
		int a;

		try {
			a = 3;
		} catch {
		}

		// CS0165
		return a;
	}
}
</string>
    <string>// CS0165: Use of unassigned local variable `a'
// Line: 9

using System;

class C {
	public static int test5 ()
	{
		int a;

		try {
			Console.WriteLine ("TRY");
			a = 8;
		} catch {
			a = 9;
		} finally {
			// CS0165
			Console.WriteLine (a);
		}

		return a;
	}
}
</string>
    <string>// CS0165: Use of unassigned local variable `service'
// Line: 17
using System;

public class Foo
{
	static void Main (string[] args)
	{
		int service;

		int pos = 0;
		while (pos &lt; args.Length) {
			service = 1;
			break;
		}

		Console.WriteLine (service);
	}
}
</string>
    <string>// CS0165: Use of unassigned local variable `service'
// Line: 16
using System;

public class Foo
{
	static void Main (string[] args)
	{
		int service;

		for (int pos = 0; pos &lt; args.Length; pos++) {
			service = 1;
			break;
		}

		Console.WriteLine (service);
	}
}
</string>
    <string>// CS0165: Use of unassigned local variable `service'
// Line: 17
using System;

public class Foo
{
	static void Main ()
	{
		int service;

		foreach (char b in "hola") {
			Console.WriteLine (b);
			service = 1;
			break;
		}

		Console.WriteLine (service);
	}
}
</string>
    <string>// CS0165: Use of unassigned local variable `s'
// Line: 16

using System;

public class Test
{
        public int i;

        public void Hoge ()
        {
                if (i &gt; 0)
                        goto Fuga;
                string s = "defined later";
        Fuga:
                Console.WriteLine (s);
        }
}
</string>
    <string>// CS0165: Use of unassigned local variable `errors'
// Line: 9

class T {
	static void Main ()
	{
		int errors;

		errors += 1;
	}
}
</string>
  </Examples>
</ErrorDocumentation>