Quantcast
Channel: C# Constructor - Stack Overflow
Viewing all articles
Browse latest Browse all 4

C# Constructor

$
0
0

I recently saw a C# constructor that look something like this...

public Class foo{    public foo() : this(new bar())    {}}

Can anybody help me interpret this? where does the bar() fit in?
If you could help me complete the class by inserting the bar() in its proper place so that I can compile/debug and see the whole picture.

Thanks in advance.

Nikos


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images