.net - Are there any differences to C# between North America, Asia, Europe? -
.net - Are there any differences to C# between North America, Asia, Europe? -
i took online (non-course related) test on c# , question came me:
are there difference c# language based on country/region?
well datetime typesetting different depending on culture. instance in u.s., read, same goes currencies, dialogs (the yesno buttons different, etc.):
10/15/2014 8:16:08 pm whereas in french republic read:
15/10/2014 20:17:08 example (with csharp interactive shell):
mono c# shell, type "help;" help come in statements below. csharp> using system.threading; csharp> using system.globalization; csharp> console.writeline(datetime.now); 10/15/2014 8:18:12 pm csharp> thread.currentthread.currentculture = new cultureinfo("fr-fr"); csharp> console.writeline(datetime.now); 15/10/2014 20:18:46 in short settings depend on country/culture/natural language set locally (as @joppiesaus mentions, europeans utilize comma americans utilize "decimal dot"). compiler uniform.
note has nil c# itself. after c# standardized language deterministic virtual machine. "environment" in runs, can set default values differently.
finally, @philippelhardy indicates, there patents can cause problems. instance mono clone of c#. while microsoft silverlight can play drm protected media files, mono's moonlight can't, because microsoft didn't license playreader. see here more information.
c# .net region
Comments
Post a Comment