Click here to Skip to main content
Click here to Skip to main content
Articles » Languages » C# » General » Alternatives
 
Alternatives (1)

How to call an overloaded constructors in C#

, 15 Sep 2011
A guide on how to call overload constructors in C#

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

20 Sep 2011
Robert Ludwig
All three of the Something methods could be replaced with a single definition of the form:public Something(string name = "default", index = -1){ myName = name; myIndex= index; DoStuff();}

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Reiss
Program Manager
United Kingdom United Kingdom
No Biography provided

| | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 15 Sep 2011
Article Copyright 2011 by Reiss
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid