Hi,
I want to overload a constructor of a class. But I want to call the other
one from the second if called. I explain with code because of my english:
public class XMLConfig
{
public XMLConfig(string FileName)
{
// here I want to do something with Filename and some init
}
public XMLConfig()
{
// this one should call the other one with a default filename
XMLConfig("default_filename");
}
Can someone explain how to do this ? If I do it as this then I get a
compiler error.
--
rgds, Wilfried
http://www.mestdagh.biz