S
shapper
Hello,
I know that in NET 4 instead of using:
public int method(string p1) {};
public int method(string p1, string p2) {};
I can use simply:
public int method(string p1, string p2 = "") {};
But it seems I can't use the following:
public int method(DateTime dt1, DayOfWeek eFirstDayOfWeek =
DateTimeFormatInfo.CurrentInfo.FirstDayOfWeek)
It seems the default values must be only "", int, etc.
Maybe I am looking at this the wrong way but it does not make a lot of
sense ... Does it?
Thanks,
Miguel
I know that in NET 4 instead of using:
public int method(string p1) {};
public int method(string p1, string p2) {};
I can use simply:
public int method(string p1, string p2 = "") {};
But it seems I can't use the following:
public int method(DateTime dt1, DayOfWeek eFirstDayOfWeek =
DateTimeFormatInfo.CurrentInfo.FirstDayOfWeek)
It seems the default values must be only "", int, etc.
Maybe I am looking at this the wrong way but it does not make a lot of
sense ... Does it?
Thanks,
Miguel