Beispiel #1
0
	public static int test_0_safehandle_ref_noctor ()
	{
		MyHandleNoCtor m = new MyHandleNoCtor ((IntPtr) 0xdead);

		try {
			mono_safe_handle_ref2 (ref m);
		} catch (MissingMethodException e){
			Console.WriteLine ("Good: got exception requried");
			return 0;
		}

		return 1;
	}
Beispiel #2
0
	public static extern void mono_safe_handle_ref2 (ref MyHandleNoCtor handle);