[corlib] Make Marshal.BufferToBSTR(Array, int) non-public again (#5670)
[mono.git] / mcs / errors / cs0214-5.cs
1 // CS0214: Pointers and fixed size buffers may only be used in an unsafe context
2 // Line: 16
3 // Compiler options: -unsafe
4
5 using System;
6
7 public class Driver 
8 {
9         public static unsafe byte* Frob 
10         {
11                 get { return (byte *) 0; }
12         }
13   
14         public static void Main () 
15         {
16                 IntPtr q = (IntPtr) Frob;
17         }
18 }