On Jun 6, 2012, at 5:52 AM, Miljenko Cvjetko wrote: > So ran into: > Error 1 > 'Pan': member names cannot be the same as their enclosing type > HolisticWare_AChartEngine\HolisticWare.AChartEngine.JavaBindingLibrary\obj\Debug\generated\src\Android.AChartEngine.Tools.Pan.cs > > 134 29 > HolisticWare.AChartEngine.JavaBindingLibrary > > EventHandler name is the same as class name. > > How would Xamarin team resolve that? Any rules for such cases?
No real guidelines as such; just pick a name that seems reasonably obvious. :-) You can rename the class, or rename the event. You already provided metadata to rename the class; to rename the event, you'd add the eventName attribute. To change the event name to Panned, use: <attr path="/api/package[@name='org.achartengine.tools']/class[@name='Pan']/method[@name='addPanListener']" name="eventName" >Panned</attr> If it were a property causing name conflicts, you'd add the propertyName attribute instead of the eventName attribute. If you want to prevent binding of a property/event, set the event/property name to the empty string. > Error detected in documentation: Thank you for reporting this. It has been fixed. - Jon _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid