Can someone tell me how to correct the problem below??

The jar bindings project is generating the code below, which is fine except
the variable named "params" is a reserved C# keyword and its causing an
error.  I need some way to remap the addContentView method so that it
doesn't use the name "params" as a parameter.  Any ideas?

static IntPtr
id_addContentView_Landroid_view_View_Landroid_view_ViewGroup_LayoutParams_;
                [Register ("addContentView",
"(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V",
"GetAddContentView_Landroid_view_View_Landroid_view_ViewGroup_LayoutParams_Handler")]
                public override void AddContentView (global::Android.Views.View 
view,
global::Android.Views.ViewGroup.LayoutParams params)
                {
                        if
(id_addContentView_Landroid_view_View_Landroid_view_ViewGroup_LayoutParams_
== IntPtr.Zero)
                        
id_addContentView_Landroid_view_View_Landroid_view_ViewGroup_LayoutParams_ =
JNIEnv.GetMethodID (class_ref, "addContentView",
"(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V");
                        JNIEnv.CallVoidMethod  (Handle,
id_addContentView_Landroid_view_View_Landroid_view_ViewGroup_LayoutParams_,
new JValue (view), new JValue (params));
                }


Here is what I had but it wasn't quite complete/working yet.  It actually
caused the generator.exe to throw an error/stop working:

<mapping jni-class="android.view.Window">
    <method jni-name="addContentView" parameter="params"
clr-enum-type="Android.Views.ViewGroup.LayoutParams" />
  </mapping>

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/JAR-Binding-Help-tp5710760.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to