KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Every now and then, I bump into syntax that I've seen before, but never used. This is one of those times. Can someone explain the purpose of ":this" or ":base" following a C# constructor method? For example: public MyClass(SomeArg arg) : this(new SomethingElse(), arg) { } My gut feeling is that it is used to map a default argument onto another constructor method.
Tags (comma-separated)
Save Edits
Cancel