xamarin-macios/tests/generator/bug31788.cs

27 строки
595 B
C#

using Foundation;
namespace Test
{
[BaseType (typeof (NSObject))]
interface SimServiceConnectionManager {}
// Both these should produce the same output,
// both calling xamarin_IntPtr_objc_msgSend_exception
[BaseType (typeof (NSObject))]
interface MarshalOnProperty
{
[Static]
[Export ("sharedConnectionManager")]
[MarshalNativeExceptions]
SimServiceConnectionManager Shared { get; }
}
[BaseType (typeof (NSObject))]
interface MarshalInProperty
{
[Static]
[Export ("sharedConnectionManager")]
SimServiceConnectionManager Shared { [MarshalNativeExceptions]get; }
}
}