2016-05-26 16:06:52 +03:00
|
|
|
/*
|
|
|
|
* Errors when doing users perform a binding but the Delegate property does not use the correct name.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
using System;
|
|
|
|
#if !XAMCORE_2_0
|
2017-02-22 18:47:11 +03:00
|
|
|
using Foundation;
|
|
|
|
using ObjCRuntime;
|
2016-05-26 16:06:52 +03:00
|
|
|
#else
|
|
|
|
using Foundation;
|
|
|
|
using ObjCRuntime;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
namespace Test {
|
|
|
|
[BaseType (typeof (NSObject))]
|
|
|
|
[Model]
|
|
|
|
[Protocol]
|
|
|
|
public interface SharedDelegate {
|
|
|
|
}
|
|
|
|
|
|
|
|
[BaseType (typeof (NSObject), Delegates=new string [] {"WeakDelegate"}, Events=new Type [] {typeof (SharedDelegate)})]
|
|
|
|
public interface TestWrongPropertyName{
|
|
|
|
[Export ("delegate", ArgumentSemantic.Assign), NullAllowed]
|
|
|
|
NSObject WeakDelegate { get; set; }
|
|
|
|
|
|
|
|
[Wrap ("WeakDelegate")]
|
|
|
|
[Protocolize]
|
|
|
|
SharedDelegate TestProperty { get; set; }
|
|
|
|
}
|
|
|
|
}
|