Sagaert,
Basically, the constructor that has no parameters will call the
constructor that takes a string parameters before the code in the brackets
is called. That constructor will call the constructor that takes a string
and an integer. Once that constructor is done, it will walk back up the
stack, executing the code in the brackets.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Sagaert Johan" <RE*************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi
i found this in an example class, but never saw this syntax before.
thais was inside a derived class of a combobox
public ComboBoxExItem() : this("")
{
}
public ComboBoxExItem(string text): this(text, -1)
{
}
why isthe method followed by : this ("") ?