I am trying to do C# binding to Joan Lluchs SWRevealViewController. Have followed various tutorials and think I have fixed up most generated code, but am getting this error: CS0708.
Code Snippet Below:
public unsafe static partial class SWRevealViewController_UIViewController { [CompilerGenerated] const string selRevealViewController = "revealViewController"; static readonly IntPtr selRevealViewControllerHandle = Selector.GetHandle ("revealViewController");
[CompilerGenerated]
static readonly IntPtr class_ptr = Class.GetHandle ("global::MonoTouch.UIKit.UIViewController");
[CompilerGenerated]
object __mt_RevealViewController_var;
[CompilerGenerated]
public virtual SWRevealViewController RevealViewController {
[Export ("revealViewController")]
get {
SWRevealViewController ret;
if (IsDirectBinding) {
ret = Runtime.GetNSObject<SWRevealViewController> (MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selRevealViewControllerHandle));
} else {
ret = Runtime.GetNSObject<SWRevealViewController> (MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selRevealViewControllerHandle));
}
MarkDirty ();
__mt_RevealViewController_var = ret;
return ret;
}
}
} /* class SWRevealViewController_UIViewController */
And error here -
/Users/chrisperret/Projects/SWRevealViewControllerX/SWRevealViewController-Xam/obj/Debug/ios/SWRevealViewControllerX/SWRevealViewController_UIViewController.g.cs(10,10): Error CS0708: `SWRevealViewControllerX.SWRevealViewController_UIViewController.__mt_RevealViewController_var': cannot declare instance members in a static class (CS0708) (SWRevealViewController-Xam)
/Users/chrisperret/Projects/SWRevealViewControllerX/SWRevealViewController-Xam/obj/Debug/ios/SWRevealViewControllerX/SWRevealViewController_UIViewController.g.cs(41,41): Error CS0708: `SWRevealViewControllerX.SWRevealViewController_UIViewController.RevealViewController': cannot declare instance members in a static class (CS0708) (SWRevealViewController-Xam)
///// Has anyone seen this. THe forums have one reference to this error and no suggested work-arounds. Any help or pointers appreciated.