[Mono-bugs] [Bug 656140] Add Overloads For Activity.SetResult and Activity.OnActivityResult Methods To Allow int For resultCode Parameter

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Nov 28 19:47:17 EST 2010


https://bugzilla.novell.com/show_bug.cgi?id=656140

https://bugzilla.novell.com/show_bug.cgi?id=656140#c4


--- Comment #4 from Mike Kestner <mkestner at novell.com> 2010-11-29 00:47:16 UTC ---
My inclination is to leave this as is.  Overloading it will be strange,
especially in the OnActivityResult override scenarios.  

Custom result codes implies a "high risk for errors."   The same can be said
for any integer API.  Any time you start passing arbitrary ints, which is what
the custom result code scenario boils down to, you need to know what to expect
on both ends anyway, so there's no more error introduced by passing it as a
"out of range" enum value, while there is clearly something to be gained by
passing the standard result codes as enums.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list