I would declare an empty String variable like this:
string myString = string.Empty;
Is there an equivalent for a \'DateTime\' variable
This will work for null able dateTime parameter
. .
SearchUsingDate(DateTime? StartDate, DateTime? EndDate){ DateTime LastDate; if (EndDate != null) { LastDate = (DateTime)EndDate; LastDate = LastDate.AddDays(1); EndDate = LastDate; } }