public static ILangDefinition ParseFromFile(string path) { if (!File.Exists(path)) Logging.Warning("Lang definition file is missing at : " + path); doc = new XPathDocument(new StreamReader(path)); nav = doc.CreateNavigator(); if (nav == null) throw new ApplicationException("Error the XPathNavigator for the document ("+path+") is null"); LangDefinition def = new LangDefinition(GetTypes(), GetName(), GetMethodFormating(), GetEventFormating(), GetPropertyFormating(), GetDictionaryFormating(), GetStructFormating(), GetArrayFormating()); return def; }
public static ILangDefinition ParseFromFile(string path) { if (!File.Exists(path)) { Logging.Warning("Lang definition file is missing at : " + path); } doc = new XPathDocument(new StreamReader(path)); nav = doc.CreateNavigator(); if (nav == null) { throw new ApplicationException("Error the XPathNavigator for the document (" + path + ") is null"); } LangDefinition def = new LangDefinition(GetTypes(), GetName(), GetMethodFormating(), GetEventFormating(), GetPropertyFormating(), GetDictionaryFormating(), GetStructFormating(), GetArrayFormating()); return(def); }