﻿<?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>CS0266</ErrorName>
  <Examples>
    <string>// cs0266.cs: Cannot implicitly convert type `Helper*' to `Obsolete*'. An explicit conversion exists (are you missing a cast?)
// Line: 18
// Compiler options: -unsafe

class Box {
        public Helper o;
}

unsafe struct Obsolete {
}

unsafe struct Helper {}

class MainClass {
        unsafe public static void Main ()
        {
                Box b = new Box ();
                fixed (Obsolete* p = &amp;b.o)
                {
                }
        }
}
</string>
    <string>// cs0266.cs: Cannot implicitly convert type `object' to `System.Collections.ArrayList'. An explicit conversion exists (are you missing a cast?)
// Line: 12

using System.Collections;

class X
{
	static Hashtable h = new Hashtable ();

	public static void Main ()
	{
		ArrayList l = h ["hola"] = new ArrayList ();
	}
}
</string>
    <string>// cs0266.cs: Cannot implicitly convert type `long' to `uint'. An explicit conversion exists (are you missing a cast?)
// Line: 7

namespace MWFTestApplication {
	class MainWindow {
		public enum Testme : uint {
			value   = (1L &lt;&lt; 1)
		}
	}
}
</string>
    <string>// cs0266-8.cs: Cannot implicitly convert type `void*' to `int*'. An explicit conversion exists (are you missing a cast?)
// Line: 7
// Compiler options: -unsafe

unsafe class MainClass {
	static void *pv = null;
	static int *pi = pv;
        public static void Main () { }
}
</string>
    <string>// cs0266.cs: Cannot implicitly convert type `Foo.MyEnumType' to `uint'. An explicit conversion exists (are you missing a cast?)
// Line: 11

public class Foo {
  enum MyEnumType { MyValue }

  public void Bar ()
  {
    uint my_uint_var = 0;
    switch (my_uint_var) {
    case MyEnumType.MyValue:
      break;
    default:
      break;
    }
  }

  static void Main () {}
}






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