Click here to Skip to main content
15,919,931 members
Home / Discussions / C#
   

C#

 
Questionreports Pin
kjosh13-Jun-06 11:44
kjosh13-Jun-06 11:44 
JokePlug Pin
Nicholas Butler13-Jun-06 13:25
sitebuilderNicholas Butler13-Jun-06 13:25 
QuestionAccess form objects from a class Pin
Ramjet113-Jun-06 11:25
Ramjet113-Jun-06 11:25 
AnswerRe: Access form objects from a class Pin
Member 9613-Jun-06 12:12
Member 9613-Jun-06 12:12 
AnswerRe: Access form objects from a class Pin
urbane.tiger13-Jun-06 17:00
urbane.tiger13-Jun-06 17:00 
QuestionSystem.String and Thread Safety Pin
Alexander Wiseman13-Jun-06 11:05
Alexander Wiseman13-Jun-06 11:05 
AnswerRe: System.String and Thread Safety Pin
User 665813-Jun-06 11:17
User 665813-Jun-06 11:17 
GeneralRe: System.String and Thread Safety Pin
Alexander Wiseman13-Jun-06 11:28
Alexander Wiseman13-Jun-06 11:28 
Thanks for your reply. I am still confused, however, because in the MSDN documentation, it says this about a System.String (and it makes no distinction between static members and instance members):

Quote from MSDN System.String Overview

Thread Safety
This type is safe for multithreaded operations.

End quote from MSDN

Furthermore, just because a variable is declared to be static does not mean that it is thread safe. I was under the impression that the programmer had to make sure that variables, even static ones, were thread safe.

That being said, my original confusion remains, because it seems like, from the MSDN documentation, there is nothing required on the part of the user of the System.String class to ensure thread safety. What little I have read concerning "immutability" of the string type would support this. On the other hand, if I am doing multiple write operations and multiple read operations, is there going to be a problem?

Thanks again.

Sincerely,
Alexander Wiseman
GeneralRe: System.String and Thread Safety Pin
Leslie Sanford13-Jun-06 11:40
Leslie Sanford13-Jun-06 11:40 
GeneralRe: System.String and Thread Safety [modified] Pin
Alexander Wiseman13-Jun-06 11:46
Alexander Wiseman13-Jun-06 11:46 
GeneralRe: System.String and Thread Safety [modified] Pin
Leslie Sanford13-Jun-06 11:58
Leslie Sanford13-Jun-06 11:58 
AnswerRe: System.String and Thread Safety [modified] Pin
Leslie Sanford13-Jun-06 11:44
Leslie Sanford13-Jun-06 11:44 
GeneralRe: System.String and Thread Safety Pin
Alexander Wiseman13-Jun-06 11:52
Alexander Wiseman13-Jun-06 11:52 
AnswerRe: System.String and Thread Safety Pin
Guffa13-Jun-06 11:46
Guffa13-Jun-06 11:46 
GeneralRe: System.String and Thread Safety Pin
Alexander Wiseman13-Jun-06 11:51
Alexander Wiseman13-Jun-06 11:51 
GeneralRe: System.String and Thread Safety Pin
Leslie Sanford13-Jun-06 12:00
Leslie Sanford13-Jun-06 12:00 
GeneralRe: System.String and Thread Safety Pin
Mr. VB.NET13-Jun-06 12:46
Mr. VB.NET13-Jun-06 12:46 
GeneralRe: System.String and Thread Safety Pin
Judah Gabriel Himango13-Jun-06 13:24
sponsorJudah Gabriel Himango13-Jun-06 13:24 
GeneralRe: System.String and Thread Safety Pin
Leslie Sanford13-Jun-06 13:36
Leslie Sanford13-Jun-06 13:36 
GeneralRe: System.String and Thread Safety Pin
Judah Gabriel Himango13-Jun-06 13:26
sponsorJudah Gabriel Himango13-Jun-06 13:26 
QuestionSharing source code between classes? Pin
Member 9613-Jun-06 10:39
Member 9613-Jun-06 10:39 
AnswerRe: Sharing source code between classes? Pin
gantww13-Jun-06 10:46
gantww13-Jun-06 10:46 
GeneralRe: Sharing source code between classes? Pin
Member 9613-Jun-06 11:38
Member 9613-Jun-06 11:38 
GeneralRe: Sharing source code between classes? Pin
Guffa13-Jun-06 11:50
Guffa13-Jun-06 11:50 
GeneralRe: Sharing source code between classes? Pin
Member 9613-Jun-06 12:11
Member 9613-Jun-06 12:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.