diff options
| author | LukePulverenti <luke.pulverenti@gmail.com> | 2013-02-23 02:57:11 -0500 |
|---|---|---|
| committer | LukePulverenti <luke.pulverenti@gmail.com> | 2013-02-23 02:57:11 -0500 |
| commit | b8d5c718429f1325111834b8b95698fc9c9ba47d (patch) | |
| tree | f7f23b8704380552f25f3edfa3d706455069692e /MediaBrowser.Common/Localization/LocalizedStringData.cs | |
| parent | c165f37bb96ad40d863a436795c21b9085f3fde9 (diff) | |
type discovery without attributes
Diffstat (limited to 'MediaBrowser.Common/Localization/LocalizedStringData.cs')
| -rw-r--r-- | MediaBrowser.Common/Localization/LocalizedStringData.cs | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/MediaBrowser.Common/Localization/LocalizedStringData.cs b/MediaBrowser.Common/Localization/LocalizedStringData.cs deleted file mode 100644 index a507c7b6b..000000000 --- a/MediaBrowser.Common/Localization/LocalizedStringData.cs +++ /dev/null @@ -1,51 +0,0 @@ -using System.IO; -using System.Xml.Serialization; - -namespace MediaBrowser.Common.Localization -{ - /// <summary> - /// Class LocalizedStringData - /// </summary> - public class LocalizedStringData - { - /// <summary> - /// The this version - /// </summary> - [XmlIgnore] - public string ThisVersion = "1.0000"; - /// <summary> - /// The prefix - /// </summary> - [XmlIgnore] - public string Prefix = ""; - /// <summary> - /// The file name - /// </summary> - public string FileName; //this is public so it will serialize and we know where to save ourselves - /// <summary> - /// The version - /// </summary> - public string Version = ""; //this will get saved so we can check it against us for changes - - /// <summary> - /// Saves this instance. - /// </summary> - public void Save() - { - Save(FileName); - } - - /// <summary> - /// Saves the specified file. - /// </summary> - /// <param name="file">The file.</param> - public void Save(string file) - { - var xs = new XmlSerializer(GetType()); - using (var fs = new FileStream(file, FileMode.Create, FileAccess.Write, FileShare.None)) - { - xs.Serialize(fs, this); - } - } - } -} |
