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
The foo class should contain another constructor, that takes a bar object as a parameter.