// Load token from the file and deserialize it public static Token Load() { // Token has been saved by user if (IsSet) { var XmlManager = new XMLManager <Token>(); using (var fileReader = new FileReader(_path, _name)) { return(XmlManager.Deserialize(fileReader.Stream)); } } else { return(null); } }