文字列に関するこの奇妙な問題に直面しています。
次のような文字列を割り当てました。
string temp = DateTime.UtcNow.ToString("s");
_snapShotTime = string.Copy(temp);
//here threads started....
//while thread progressing I am passing _snapShotTime to create a directory.
//same in second threads.
しかし、ローカルプライベート変数の時間は_snapShotTime
変化し続けています。どうしてか分かりません。ローカル変数とコピー値を使用しました。
ありがとう