diff options
author | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2014-12-09 05:35:04 +0300 |
---|---|---|
committer | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2014-12-09 05:35:04 +0300 |
commit | 79f8e909fa4a1b1d41afbaefaead2893343bd253 (patch) | |
tree | 74db4cf0797f4350a238c74c31cf0d8c2b62333b /main/src/addins/WindowsPlatform | |
parent | fa718d0c2d2e19c8b82795c6e71db350f48d18bd (diff) |
Revert "[Windows] Don't force eager evaluation into another lazy one."
This reverts commit fa718d0c2d2e19c8b82795c6e71db350f48d18bd.
Diffstat (limited to 'main/src/addins/WindowsPlatform')
-rw-r--r-- | main/src/addins/WindowsPlatform/WindowsPlatform/WindowsPlatform.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/main/src/addins/WindowsPlatform/WindowsPlatform/WindowsPlatform.cs b/main/src/addins/WindowsPlatform/WindowsPlatform/WindowsPlatform.cs index 6427e46bf5..d82a6d219d 100644 --- a/main/src/addins/WindowsPlatform/WindowsPlatform/WindowsPlatform.cs +++ b/main/src/addins/WindowsPlatform/WindowsPlatform/WindowsPlatform.cs @@ -33,7 +33,6 @@ using System; using System.IO; using System.Drawing; using System.Drawing.Imaging; -using System.Linq; using System.Runtime.InteropServices;
using System.Collections.Generic; using Microsoft.Win32; @@ -331,8 +330,11 @@ namespace MonoDevelop.Platform yield break; string defaultApp = GetDefaultApp (extension); - return GetAppsByProgID (extension, defaultApp) - .Concat (GetAppsByExeName (extension, defaultApp)); + foreach (var app in GetAppsByProgID (extension, defaultApp)) + yield return app; + + foreach (var app in GetAppsByExeName (extension, defaultApp)) + yield return app; } const string assocBaseKey = @"Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\"; |