示例#1
0
    public static void StructWithNestedAutoLayoutField()
    {
        short s = 42;
        bool  b = true;

        AssertThrowsMarshalDirectiveOrTypeLoad(() => DisabledRuntimeMarshallingNative.CallWithAutoLayoutStruct(new SequentialWithAutoLayoutNestedField()));
    }
示例#2
0
    public static void AutoLayoutStruct()
    {
        short s = 42;
        bool  b = true;

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