Esempio n. 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);
    }
Esempio n. 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);
    }
Esempio n. 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;
	}
Esempio n. 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;
	}
Esempio n. 5
0
	public static extern int mono_safe_handle_struct_simple (StructTest1 test);
Esempio n. 6
0
 public static extern int mono_safe_handle_struct_simple(StructTest1 test);