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 751 through 758 of 758
Prev | First
  The time now is 12:20:33 AM ET.
Any comment problems? E-mail us
#751 By 4240821 (82.115.4.100) at 1/1/2026 4:23:31 PM
https://www.pillowfort.social/posts/6796516
https://www.pillowfort.social/posts/6796437
https://www.pillowfort.social/posts/6796359
https://www.pillowfort.social/posts/6796286
https://www.pillowfort.social/posts/6796157
https://www.pillowfort.social/posts/6796035
https://www.pillowfort.social/posts/6795875
https://www.pillowfort.social/posts/6795803
https://www.pillowfort.social/posts/6795522
https://www.pillowfort.social/posts/6795286

#752 By 4240821 (82.115.4.100) at 1/2/2026 11:14:47 AM
https://www.pillowfort.social/posts/6743215
https://www.pillowfort.social/posts/6743038
https://www.pillowfort.social/posts/6742816
https://www.pillowfort.social/posts/6742621
https://www.pillowfort.social/posts/6742414
https://www.pillowfort.social/posts/6742163
https://www.pillowfort.social/posts/6741857
https://www.pillowfort.social/posts/6741607
https://www.pillowfort.social/posts/6741448
https://www.pillowfort.social/posts/6741273

#753 By 4240821 (82.115.4.100) at 1/3/2026 5:03:25 PM
https://www.pillowfort.social/posts/6937331
https://www.pillowfort.social/posts/6937255
https://www.pillowfort.social/posts/6937156
https://www.pillowfort.social/posts/6937072
https://www.pillowfort.social/posts/6936920
https://www.pillowfort.social/posts/6936795
https://www.pillowfort.social/posts/6936725
https://www.pillowfort.social/posts/6936588
https://www.pillowfort.social/posts/6936448
https://www.pillowfort.social/posts/6936319

#754 By 4240821 (82.115.4.100) at 1/3/2026 6:55:09 PM
https://www.pillowfort.social/posts/6589700
https://www.pillowfort.social/posts/6589631
https://www.pillowfort.social/posts/6589512
https://www.pillowfort.social/posts/6589372
https://www.pillowfort.social/posts/6589286
https://www.pillowfort.social/posts/6589178
https://www.pillowfort.social/posts/6589066
https://www.pillowfort.social/posts/6588983
https://www.pillowfort.social/posts/6588929
https://www.pillowfort.social/posts/6588840

#755 By 4240821 (82.115.4.100) at 1/3/2026 10:18:12 PM
https://www.pillowfort.social/posts/6840472
https://www.pillowfort.social/posts/6840276
https://www.pillowfort.social/posts/6840043
https://www.pillowfort.social/posts/6839889
https://www.pillowfort.social/posts/6839758
https://www.pillowfort.social/posts/6839608
https://www.pillowfort.social/posts/6839465
https://www.pillowfort.social/posts/6839210
https://www.pillowfort.social/posts/6839028
https://www.pillowfort.social/posts/6838946

#756 By 4240821 (82.115.4.100) at 1/3/2026 11:12:56 PM
https://www.pillowfort.social/posts/6809704
https://www.pillowfort.social/posts/6809572
https://www.pillowfort.social/posts/6809482
https://www.pillowfort.social/posts/6809385
https://www.pillowfort.social/posts/6809271
https://www.pillowfort.social/posts/6809127
https://www.pillowfort.social/posts/6808999
https://www.pillowfort.social/posts/6808794
https://www.pillowfort.social/posts/6808621
https://www.pillowfort.social/posts/6808441

#757 By 4240821 (82.115.4.100) at 1/5/2026 11:42:22 PM
https://www.pillowfort.social/posts/6767168
https://www.pillowfort.social/posts/6767023
https://www.pillowfort.social/posts/6766777
https://www.pillowfort.social/posts/6766581
https://www.pillowfort.social/posts/6766360
https://www.pillowfort.social/posts/6766041
https://www.pillowfort.social/posts/6765749
https://www.pillowfort.social/posts/6765582
https://www.pillowfort.social/posts/6765379
https://www.pillowfort.social/posts/6765214

#758 By 4240821 (82.115.4.100) at 1/6/2026 4:58:13 AM
https://www.pillowfort.social/posts/6473823
https://www.pillowfort.social/posts/6473670
https://www.pillowfort.social/posts/6473570
https://www.pillowfort.social/posts/6473490
https://www.pillowfort.social/posts/6473415
https://www.pillowfort.social/posts/6473328
https://www.pillowfort.social/posts/6473045
https://www.pillowfort.social/posts/6472919
https://www.pillowfort.social/posts/6472811
https://www.pillowfort.social/posts/6472696

Write Comment
Return to News
  Displaying 751 through 758 of 758
Prev | First
  The time now is 12:20:33 AM ET.
Any comment problems? E-mail us
User name and password:

 

  *  
  *   *