OSDN Git Service

Dictionaryの初期化にインデックス初期化子を使用する
[opentween/open-tween.git] / OpenTween / MediaSelector.cs
index d4b8b60..f65c61b 100644 (file)
@@ -152,12 +152,12 @@ namespace OpenTween
             this.pictureService = null;
 
             this.pictureService = new Dictionary<string, IMediaUploadService> {
-                {"Twitter", new TwitterPhoto(tw, twitterConfig)},
-                {"img.ly", new imgly(tw, twitterConfig)},
-                {"yfrog", new yfrog(tw, twitterConfig)},
-                {"ついっぷるフォト", new TwipplePhoto(tw, twitterConfig)},
-                {"Imgur", new Imgur(tw, twitterConfig)},
-                {"Mobypicture", new Mobypicture(tw, twitterConfig)},
+                ["Twitter"] = new TwitterPhoto(tw, twitterConfig),
+                ["img.ly"] = new imgly(tw, twitterConfig),
+                ["yfrog"] = new yfrog(tw, twitterConfig),
+                ["ついっぷるフォト"] = new TwipplePhoto(tw, twitterConfig),
+                ["Imgur"] = new Imgur(tw, twitterConfig),
+                ["Mobypicture"] = new Mobypicture(tw, twitterConfig),
             };
         }