﻿<?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>CS0212</ErrorName>
  <Examples>
    <string>// cs0212-2.cs: You can only take the address of unfixed expression inside of a fixed statement initializer
// Line: 17
// Compiler options: -unsafe

using System;

unsafe class X {
	static void Main ()
	{
		int foo = 0;
		Blah (ref foo);

	}
	
	static void Blah (ref int mptr)
	{
		int* x = &amp;mptr;
	}
}
</string>
    <string>// cs0212.cs: You can only take the address of unfixed expression inside of a fixed statement initializer
// Line: 19
// Compiler options: -unsafe

using System;

class X
{
	public int x;
	public X ()
	{
		this.x = 4;
	}

	public unsafe static void Main ()
	{
		X x = new X ();
		int *p = &amp;x.x;
	}
}
</string>
  </Examples>
</ErrorDocumentation>