if (File != "") {
try {
- Stream s = System.IO.File.OpenRead (File);
- XmlReader subreader = new ConfigXmlTextReader (s, File);
+ string filePath = File;
+ if (!Path.IsPathRooted (filePath))
+ filePath = Path.Combine (Path.GetDirectoryName (Configuration.FilePath), filePath);
+
+ Stream s = System.IO.File.OpenRead (filePath);
+ XmlReader subreader = new ConfigXmlTextReader (s, filePath);
base.DeserializeElement (subreader, serializeCollectionKey);
s.Close ();
}
[MonoTODO]
protected internal override string SerializeSection (
- ConfigurationElement parent, string name, ConfigurationSaveMode mode)
+ ConfigurationElement parentElement, string name, ConfigurationSaveMode saveMode)
{
if (File == "") {
- return base.SerializeSection (parent, name, mode);
+ return base.SerializeSection (parentElement, name, saveMode);
}
else {
throw new NotImplementedException ();