Probably a stupid question, but I'm quite new to the whole "get-and-set-property"-kind of programming;
I keep getting a compiling-error on this part of my code;
private string _File = "Session.xml";
private XmlDocument XmlDoc
{
get
{
XmlDocument _Doc = new XmlDocument();
return _Doc.LoadXml(_File);
}
}
private XmlElement XmlRoot
{
get
{
return XmlDoc.DocumentElement;
}
}
How come? I can't explain that to myself as I don't even see any implicit conversions...