public static void StructWithNestedAutoLayoutField() { short s = 42; bool b = true; AssertThrowsMarshalDirectiveOrTypeLoad(() => DisabledRuntimeMarshallingNative.CallWithAutoLayoutStruct(new SequentialWithAutoLayoutNestedField())); }
public static void AutoLayoutStruct() { short s = 42; bool b = true; Assert.Throws <MarshalDirectiveException>(() => DisabledRuntimeMarshallingNative.CallWithAutoLayoutStruct(new AutoLayoutStruct())); }