On Jul 6, 2012, at 2:47 PM, craig wrote:
> 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?
This sounds like a bug. Could you please file a test case?
AddContentView() is an override; do you need it? You could try removing that
method by editing Transforms\Metadata.xml:
<remove-node
path="/api/package[@name='TODO-PACKAGE']/class[@name='TODO-CLASS']/method[@name='addContentView']"
/>
> 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>
EnumMethods.xml is for enumerations; Android.Views.ViewGroup.LayoutParams is
not an enum, it's a class, so this isn't appropriate.
Thanks,
- Jon
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid