我有一個驗證代碼如下:哪個字段爲空
if ((Info.LENDER_MAIL_STATE == "") || (Info.LENDER_MAIL_CITY == "") || (Info.LENDER_NAME == "") || (Info.LENDER_MAIL_ZIPCODE == 0) || (Info.LENDER_NAME_ID == 0) || (Info.LENDER_TYPE_CODE == "") || (Info.RECORD_ID_CODE == "") || (Info.RECORD_TYPE == "") || (Info.PORPERTY_FIPSCODE == 0) || (Info.RECORDING_PAGE_NUMBER == 0) || (Info.RECORD_ID_CODE == "") || (Info.RECORDING_BOOK_NUMBER == "") || (Info.CONCRNT_MTG_LOAN_TYPE == "") || (Info.DTBORROWER == null) || (Info.RECORDING_DATE == DateTime.MinValue) || (Info.PROPERTY_STATE == "") || (Info.PROPERTY_COUNTY == "") || (Info.PROPERTY_CITY == "") || (Info.PROPERTY_STREET_ADDRESS == "") || (Info.PROPERTY_ZIP == 0) || (Info.DOC_TYPECODE == ""))
{
return false;
}
在這段代碼中的任何價值的是空,將返回false。我需要找出哪個值爲空。請幫忙。我們可以通過,如果其他人(個人支票),我知道做到這一點,但我需要使用該知道的價值,如果本身
你需要的,如果條件檢查3!=「」 –
檢查IsNullOrEmpty – pordi