I'm trying to have an overloaded constructor for a class. I think this should be fairly simple, however I can't seem to make it work.
Any ideas?
public SaveFile(string location)
{
// Constructor logic here
//TODO: Implement save event.
this.Save(location);
}
public SaveFile()
{
string location = Environment.GetFolderPath(Environment.SpecialFolder.Personal) + "\\SaveFile.DAT";
SaveFile(location);
}
This doesn't compile correctly, and I can't figure out how to do make it work.