Ejemplo n.º 1
0
    public static void StructWithNestedAutoLayoutField()
    {
        short s = 42;
        bool  b = true;

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

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