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
DateTime
The only way would be to do it like this (a bit more code, but it gives you optional args):
public DateTime GetDate(DateTime? start = null, DateTime? end = null) { // Method body... if(start == null) { start = DateTime.MinValue; } //same for end }