diff options
author | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2014-12-09 04:14:51 +0300 |
---|---|---|
committer | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2014-12-09 04:14:51 +0300 |
commit | 98722eb02ca7ed81fd7a1418826c8b1f7a52a929 (patch) | |
tree | 6613a18a513ad686dfb3713430c12021cf369d8d /main/src/addins/WindowsPlatform | |
parent | dc638898ff5c9861590675a40230754b9d89c887 (diff) |
[Windows] Remove reflection from IOleWindow getting, internals are visible now.
Diffstat (limited to 'main/src/addins/WindowsPlatform')
-rw-r--r-- | main/src/addins/WindowsPlatform/WindowsPlatform/GdkWin32.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/main/src/addins/WindowsPlatform/WindowsPlatform/GdkWin32.cs b/main/src/addins/WindowsPlatform/WindowsPlatform/GdkWin32.cs index b6b1171cab..6c02e62578 100644 --- a/main/src/addins/WindowsPlatform/WindowsPlatform/GdkWin32.cs +++ b/main/src/addins/WindowsPlatform/WindowsPlatform/GdkWin32.cs @@ -28,7 +28,6 @@ // using System; -using System.Reflection; using System.Runtime.InteropServices; using System.Windows.Forms; using Microsoft.WindowsAPICodePack.Dialogs; @@ -184,9 +183,7 @@ namespace MonoDevelop.Platform static IntPtr GetDialogHandle (CommonFileDialog dialog) { - var f = typeof (CommonFileDialog).GetField ("nativeDialog", BindingFlags.NonPublic | BindingFlags.Instance); - var obj = f.GetValue (dialog); - var ow = (IOleWindow) obj; + var ow = (IOleWindow)dialog.nativeDialog; IntPtr handle; var hr = ow.GetWindow (out handle); if (hr != 0) |