26 строки
584 B
C#
26 строки
584 B
C#
using Foundation;
|
|
|
|
namespace Test
|
|
{
|
|
[BaseType (typeof (NSObject))]
|
|
interface SimServiceConnectionManager {}
|
|
|
|
// Both these should produce the same output,
|
|
// both calling xamarin_IntPtr_objc_msgSend
|
|
[BaseType (typeof (NSObject))]
|
|
interface MarshalOnProperty
|
|
{
|
|
[Static]
|
|
[Export ("sharedConnectionManager")]
|
|
[MarshalNativeExceptions]
|
|
SimServiceConnectionManager Shared { get; }
|
|
}
|
|
|
|
[BaseType (typeof (NSObject))]
|
|
interface MarshalInProperty
|
|
{
|
|
[Static]
|
|
[Export ("sharedConnectionManager")]
|
|
SimServiceConnectionManager Shared { [MarshalNativeExceptions]get; }
|
|
}
|
|
} |