What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Default arguments

Ama

New Member
Joined
Jun 6, 2011
Messages
1,171
Reaction score
33
While studying for my midterm, I stumbled across default arguments and thought it would be cool to use in a CC. But when I googled C# and default arguments, I read that C# doesn't have them.

Other than overloading methods, are there other alternatives to using default arguments in C#?
 
While studying for my midterm, I stumbled across default arguments and thought it would be cool to use in a CC. But when I googled C# and default arguments, I read that C# doesn't have them.

Other than overloading methods, are there other alternatives to using default arguments in C#?

Not with .NET 3.5. .NET 4.0 includes default parameters for C#. Named and Optional Arguments (C# Programming Guide)
 
Back
Top