[Mono-bugs] [Bug 661517] Android.R should be Android.Resource
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Jan 9 16:24:08 EST 2011
https://bugzilla.novell.com/show_bug.cgi?id=661517
https://bugzilla.novell.com/show_bug.cgi?id=661517#c3
--- Comment #3 from Jonathan Pryor <jpryor at novell.com> 2011-01-09 21:24:06 UTC ---
After trying this, two things are of note:
1. Pluralizing the nested types results in some types that look "weird," to
wit:
Resource.Raws
Resource.Xmls
2. Thinking about it some more, resource ids are conceptually very similar to
enumerations (in that they're a compile-time named constant). As such, the
NET Framework Design Guidelines enum naming suggestions might be appropriate:
http://msdn.microsoft.com/en-us/library/ms229058.aspx
Do name flags enumerations with plural nouns or noun phrases.
Simple enumerations should be named with singular nouns or noun
phrases.
http://msdn.microsoft.com/en-us/library/ms229040.aspx
Do use a singular name for an enumeration, unless its values are bit
fields.
This would suggest that the nested types should be *singular*, and the mapping
should thus be:
Anim -> Animation
Attr -> Attribute
Bool -> Boolean
Dimen -> Dimensions
Id -> Identifier
All other nested type names would be unchanged:
Array
Color
Drawable
Integer
Layout
Menu
Raw
String
Style
Xml
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list