迅速な方法の呼び出しは次のとおりです。
QuickMethods.IsFullyEmpty(CompanyName.Text) ||
QuickMethods.IsFullyEmpty(UsernameText.Text) ||
QuickMethods.IsFullyEmpty(PasswordText.Password)
実装は次のとおりです。
public static class QuickMethods
{
public static bool IsFullyEmpty(string s)
{
if (string.IsNullOrEmpty(s.Trim()))
return true;
return false;
}
}
利用できるオプションはありますか?はいの場合、どのように?