次のコード:
protected bool IsStringAndNotNullAndEmpty(object value)
{
var s = value as string;
if (s != null)
{
return string.IsNullOrEmpty(s);
}
return false;
}
次のobject
パススルーがあります。
"Relatively long option for testing"
これは喜んで である必要がありますが、そうではなく、2 番目のステートメントstring
に進みます。return
なぜこれを行っているのでしょうか?正直に言うと困惑しています。