Click here to Skip to main content
11,641,717 members (57,919 online)
Click here to Skip to main content
Articles » Languages » C# » General » Alternatives
Alternatives (1)

Tagged as

How to call an overloaded constructors in C#

, 15 Sep 2011 CPOL 29K 10
A guide on how to call overload constructors in C#


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();}


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


About the Author

Program Manager
United Kingdom United Kingdom
No Biography provided

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