public static T Load(string filePath)
        {
            T setting = SettingsHelper.Load <T>(filePath, SerializationType.Xml);

            setting.FilePath = filePath;
            return(setting);
        }
Exemplo n.º 2
0
        public static T Load(string filePath)
        {
            T setting = SettingsHelper.Load <T>(filePath, SerializationType);

            if (setting != null)
            {
                setting.FilePath = filePath;
            }
            return(setting);
        }
Exemplo n.º 3
0
        public static T Load(Stream stream)
        {
            T setting = SettingsHelper.Load <T>(stream, SerializationType);

            return(setting);
        }