次のコードを見てください。彼らは同じですか?違いはありますか?はいの場合、何ですか?
string f = textBox5.Text;
if (string.IsNullOrEmpty(f))
{
MessageBox.Show("string");
}
if (String.IsNullOrEmpty(f))
{
MessageBox.Show("String");
}
編集: null または空のテストは、null または空のstring
テストとまったく同じString
ですか?