Дам пару примеров кода
StringBuilder Phone = new StringBuilder();
Phone.Append(ClientMobileNearest + ',');
Phone.Append(ClientMobileCorrect + ',');
Phone.Append(ClientHomeCorrect + ',');
Phone.Append(ContactPersonMobileCorrect + ',');
Phone.Append(OtherMobileNearest + ',');
Phone.Append(OtherMobileCorrect + ',');
Phone.Append(ClientHomeNearest + ',');
Phone.Append(ClientMobileCorrectSecond);
if(Phone.ToString()==",,,,,,,")
{
return null;
}
private static Random _random = new Random();
public static bool IsMnogo(this object value) {
try {
var n = double.Parse(value.ToString());
return n > 9999999999;
} catch {
return true;
}
}
public static bool IsDavno(this DateTime value) {
return value < new DateTime(1900 + _random.Next(10, 90), 04, 17);
}
string IsChtoto()
{
return "true";
}