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 676 through 676 of 676
Prev | First
  The time now is 11:39:22 AM ET.
Any comment problems? E-mail us
#676 By 4240821 (82.115.4.230) at 11/7/2025 8:08:08 AM
https://nsfw.su/activ5bd3cga2ff
https://sexonly.su/activfecbc5cga3
https://sluts.su/activb5b55g3d11
https://sluts.su/activeadeh4h4c3
https://sexonly.su/activhd4d22dc55
https://sluts.su/activ5b5245ae41
https://nsfw.su/activ12b2bfb4ge
https://sexonly.su/activededc4b3cd
https://sexonly.top/activdhd12cbhgh
https://lustful.su/activ4d5gc4cbce

Write Comment
Return to News
  Displaying 676 through 676 of 676
Prev | First
  The time now is 11:39:22 AM ET.
Any comment problems? E-mail us
User name and password:

 

  *  
  *   *