예제 #1
0
파일: AutoLayout.cs 프로젝트: z77ma/runtime
    public static void StructWithNestedAutoLayoutField()
    {
        short s = 42;
        bool  b = true;

        AssertThrowsMarshalDirectiveOrTypeLoad(() => DisabledRuntimeMarshallingNative.CallWithAutoLayoutStruct(new SequentialWithAutoLayoutNestedField()));
    }
예제 #2
0
파일: AutoLayout.cs 프로젝트: z77ma/runtime
    public static void AutoLayoutStruct()
    {
        short s = 42;
        bool  b = true;

        Assert.Throws <MarshalDirectiveException>(() => DisabledRuntimeMarshallingNative.CallWithAutoLayoutStruct(new AutoLayoutStruct()));
    }