closeDrawers.InList< short >(2, 4)Do you know if there is something similar to VFP Case statement in C# where we can analyze different conditions?
if (startTime > defaultDate && endTime > defaultDate) { whereClause.AppendLine(" AND date_time between @StartTime and @EndTime"); sqlCommand.Parameters.Add("@StartTime", SqlDbType.DateTime).Value = startTime; sqlCommand.Parameters.Add("@EndTime", SqlDbType.DateTime).Value = endTime; }I need 2 more cases for only startTime defined or only endTime defined. If I will use if I again need to check both variables.