public static T Load(string filePath) { T setting = SettingsHelper.Load <T>(filePath, SerializationType.Xml); setting.FilePath = filePath; return(setting); }
public static T Load(string filePath) { T setting = SettingsHelper.Load <T>(filePath, SerializationType); if (setting != null) { setting.FilePath = filePath; } return(setting); }
public static T Load(Stream stream) { T setting = SettingsHelper.Load <T>(stream, SerializationType); return(setting); }