The Active Network
ActiveMac Anonymous | Create a User | Reviews | News | Forums | Advertise  
 

  *  

  New Recommendations for Using Strings in Microsoft .NET 2.0
Time: 21:37 EST/02:37 GMT | News Source: Microsoft | Posted By: Jonathan Tigner

The Microsoft .NET Framework enables developers to create software fully ready for localization and internationalization, through comprehensive machinery under the hood designed for, among other tasks, correctly interpreting strings given the current locale. This aids in quickly creating and using solutions designed for a broad range of cultures. But, when culturally-irrelevant string data is interpreted by these methods, code can exhibit subtle bugs and operate slower than necessary on untested cultures.

When interpreting strings, the canonical example of a culturally-aware type, sometimes flipping the culture switch causes unexpected results. The same strings can sort, case, and compare differently under different Thread.CurrentCulture settings. Sometimes strings should be allowed to vary according to the user's culture (for display data), but for most strings internal to an application, such as XML tags, user names, file paths, and system objects, the interpretation should be consistent throughout all cultures. Additionally, when strings represent such symbolic information, comparison operations should be interpreted entirely non-linguistically.

When developing with the 2.0 version of the .NET Framework, keeping a few very simple recommendations in mind will suffice to solve confusion about using strings.

Write Comment
Return to News

  Displaying 651 through 651 of 651
Prev | First
  The time now is 9:05:09 AM ET.
Any comment problems? E-mail us
#651 By 4240821 (45.192.45.37) at 10/12/2025 3:30:53 PM
https://nsfw.su/g/p6/p6pkvaniugoyesmqy.php
https://lustful.su/g/p77/p77dezrxebrnajbikn.php
https://sexonly.su/g/p9/p9kzntuvdaakimppl.php
https://nsfw.su/g/p0/p0ktckphufgbbqaqa.php
https://sluts.su/g/p58/p58tqflduowmwhrwza.php
https://smutty.su/g/p61/p61xnaoxqdpvahcyjy.php
https://nsfw.su/g/p15/p15objjowfsjrxablz.php
https://sluts.su/g/p36/p36lvedoqeedrdxigx.php
https://nsfw.su/g/p61/p61alognjobfuwohft.php
https://lustful.su/g/p28/p28gpdpruxzjdxhbuk.php

Write Comment
Return to News
  Displaying 651 through 651 of 651
Prev | First
  The time now is 9:05:09 AM ET.
Any comment problems? E-mail us
User name and password:

 

  *  
  *   *