In C#, is there any significant reduction in memory allocation when passing a DateTime reference as a parameter to a function as opposed to passing it by value?
int GetDayNumber(ref DateTime date)
vs
int GetDayNumber(DateTime date)
The code inside the function is not modifying the date in any case.