Click here to Skip to main content
12,293,601 members (58,122 online)
Click here to Skip to main content
Articles » Languages » C# » General » Alternatives
Alternatives (1)
Add your own
alternative version

Tagged as

Stats

33.4K views
10 bookmarked
Posted

How to call an overloaded constructors in C#

, 15 Sep 2011 CPOL
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)

Share

About the Author

Reiss
Program Manager
United Kingdom United Kingdom
No Biography provided

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