﻿<?xml version="1.0" encoding="utf-8"?>
<ErrorDocumentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ErrorName>CS0214</ErrorName>
  <Examples>
    <string>// cs0214: pointers can only be used in an unsafe context
// Line: 9
// Compiler options: -unsafe

public class Test
{
        public void Foo ()
        {
                Foo (null);
        }

        public static unsafe void Foo (int* buf) { }
}


</string>
    <string>// cs0214: Pointer can only be used in unsafe context
// Line: 13
// Compiler options: -unsafe

struct X {
	static unsafe void *a ()
		{
			return null;
		}

	static void Main ()
		{
			a ();
		}
	
}
</string>
    <string>// cs0214: Pointer can only be used in unsafe context
// Line: 8
// Compiler options: -unsafe

class X {
        public void a ()
        {
            void *p;
		}

		static void Main () {}
}
</string>
    <string>// cs0214: Pointer can only be used in unsafe context
// Line: 16
// Compiler options: -unsafe

using System;

public class Driver 
{
	public static unsafe byte* Frob 
	{
		get { return (byte *) 0; }
	}
  
	public static void Main () 
	{
		IntPtr q = (IntPtr) Frob;
	}
}
</string>
    <string>using System;

namespace ConsoleApplication1
{
	class Class1
	{
		static void Main(string[] args)
		{
			string s = typeof(void *).Name;
		}
	}
}






</string>
    <string>// cs0214: Pointer can only be used in unsafe context
// Line: 6
// Compiler options: -unsafe

class X {
	void *a;
}
</string>
  </Examples>
</ErrorDocumentation>