Talk:Comparison of C Sharp and Java: Difference between revisions

Content deleted Content added
Tbjablin (talk | contribs)
No edit summary
Line 143:
 
:Java does not support switching on strings. It seems like a minor feature to me though. Also, does C# support just switching on Strings, or switching on all Objects? [[User:Tbjablin|Tbjablin]] 13:26, 8 May 2005 (UTC)
 
::''C# Language Specification'' lists "possible governing types" of a switch statement as: sbyte, byte, short, ushort, int, uint, long, ulong, char, string. Switching on strings would thus be the only difference compared to Java. Not a groundbreaking feature, but it's very useful nonetheless... [[User:GregorB|GregorB]] 11:13, May 9, 2005 (UTC)