[mono-android] selecting contacts
John Murray
john at murray.gb.com
Thu Mar 31 15:31:49 EDT 2011
>>>Writing warning-free code would thus have avoided the issue in the first
place. :-)
What do you mean ?
I have my warnings msbuild set to detailed verbosity ?
What is 'warning-free' code ?
Sorry to be such a gimp - look on the bright side - having to deal with
idiots like me - the other side of the coin is that if I can get a result
then it's a real killer app/dev environment:-)
John Murray
-----Original Message-----
From: monodroid-bounces at lists.ximian.com
[mailto:monodroid-bounces at lists.ximian.com] On Behalf Of Jonathan Pryor
Sent: 31 March 2011 20:22
To: john at murray.gb.com; Discussions related to Mono for Android
Subject: Re: [mono-android] selecting contacts
On Mar 31, 2011, at 3:11 PM, John Murray wrote:
> Errr? Do you mean the previous erroneous code or the new stuff ?
I mean shouldn't missing an `override` keyword (and thus "hiding" a base
class member) elicit a warning from the compiler, mentioning that you should
either use `override` or use `new`?
E.g. if I miss the 'override' on OnCreate():
Hello.cs(223,32): warning CS0114:
`Mono.Samples.Hello.HelloActivity.OnCreate(Android.OS.Bundle)' hides
inherited member
`Mono.Samples.Hello.LibraryActivity.OnCreate(Android.OS.Bundle)'. To make
the current member override that implementation, add the override keyword.
Otherwise add the new keyword
Writing warning-free code would thus have avoided the issue in the first
place. :-)
- Jon
_______________________________________________
Monodroid mailing list
Monodroid at lists.ximian.com
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
More information about the Monodroid
mailing list