예제 #1
0
    public static int test_0_simple()
    {
        StructTest1 s = new StructTest1();

        s.a = new SafeFileHandle((IntPtr)1234, false);

        return(mono_safe_handle_struct_simple(s) == 2468 ? 0 : 1);
    }
예제 #2
0
    public static int test_0_struct_empty()
    {
        StructTest1 s = new StructTest1();

        try {
            mono_safe_handle_struct_simple(s);
        } catch (ArgumentNullException) {
            return(0);
        }
        return(1);
    }
예제 #3
0
	public static int test_0_struct_empty ()
	{
		StructTest1 s = new StructTest1 ();

		try {
			mono_safe_handle_struct_simple (s);
		} catch (ArgumentNullException){
			return 0;
		}
		return 1;
	}
예제 #4
0
	public static int test_0_simple ()
	{
		StructTest1 s = new StructTest1 ();
		s.a = new SafeFileHandle ((IntPtr)1234, false);

		return mono_safe_handle_struct_simple (s) == 2468 ? 0 : 1;
	}
예제 #5
0
	public static extern int mono_safe_handle_struct_simple (StructTest1 test);
예제 #6
0
 public static extern int mono_safe_handle_struct_simple(StructTest1 test);