これはクラステストです
public class Test
{
public string mystr;
}
そして、私はメソッドからそれを呼び出します:
string my = "ABC";
Test test = new Test();
test.mystr = my;
test.mystr = "";
上記のビット コードの結果は次のとおりですmy = "ABC"
。test.mystr = ""
変更時にmy
空の文字列に設定するにはどうすればよいですか?""
test.mystr = ""