I have this function that returns a reference type. Now, this function has two optional parameters both of which are instances of the DateTime class. The function i
You can set the DateTime to be nullable and then convert to DateTime.Min if no parameter is provided:
public DateTime GetDate(DateTime? start = null, DateTime? end = null) {
var actualStart = start ?? DateTime.Min;
var actualEnd = end ?? DateTime.Min;
}