Пример #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()));
    }