@@ -33,7 +33,7 @@ internal sealed class MessageWindow : DispatcherObject, IDisposable
3333 // Alias this to a static so the wrapper doesn't get GC'd
3434 private static readonly WNDPROC s_WndProc = new WNDPROC ( _WndProc ) ;
3535
36- private static readonly Dictionary < IntPtr , MessageWindow > s_windowLookup = new Dictionary < IntPtr , MessageWindow > ( ) ;
36+ private static readonly Dictionary < IntPtr , MessageWindow > s_windowLookup = new ( ) ;
3737
3838 private readonly WNDPROC _wndProcCallback ;
3939 private string _className ;
@@ -92,18 +92,18 @@ public unsafe MessageWindow(
9292
9393 ~ MessageWindow ( )
9494 {
95- _Dispose ( false , false ) ;
95+ Dispose ( false , false ) ;
9696 }
9797
9898 public void Dispose ( )
9999 {
100- _Dispose ( true , false ) ;
100+ Dispose ( true , false ) ;
101101 GC . SuppressFinalize ( this ) ;
102102 }
103103
104104 // This isn't right if the Dispatcher has already started shutting down.
105105 // It will wind up leaking the class ATOM...
106- private void _Dispose ( bool disposing , bool isHwndBeingDestroyed )
106+ private void Dispose ( bool disposing , bool isHwndBeingDestroyed )
107107 {
108108 // Block against reentrancy.
109109 if ( _isDisposed )
@@ -117,17 +117,17 @@ private void _Dispose(bool disposing, bool isHwndBeingDestroyed)
117117
118118 if ( isHwndBeingDestroyed )
119119 {
120- Dispatcher . BeginInvoke ( DispatcherPriority . Normal , ( DispatcherOperationCallback ) ( arg => _DestroyWindow ( IntPtr . Zero , className ) ) ) ;
120+ Dispatcher . BeginInvoke ( DispatcherPriority . Normal , ( DispatcherOperationCallback ) ( arg => DestroyWindow ( IntPtr . Zero , className ) ) ) ;
121121 }
122122 else if ( Handle != IntPtr . Zero )
123123 {
124124 if ( CheckAccess ( ) )
125125 {
126- _DestroyWindow ( hwnd , className ) ;
126+ DestroyWindow ( hwnd , className ) ;
127127 }
128128 else
129129 {
130- Dispatcher . BeginInvoke ( DispatcherPriority . Normal , ( DispatcherOperationCallback ) ( arg => _DestroyWindow ( hwnd , className ) ) ) ;
130+ Dispatcher . BeginInvoke ( DispatcherPriority . Normal , ( DispatcherOperationCallback ) ( arg => DestroyWindow ( hwnd , className ) ) ) ;
131131 }
132132 }
133133 s_windowLookup . Remove ( hwnd ) ;
@@ -157,14 +157,14 @@ private unsafe static LRESULT _WndProc(HWND hwnd, uint msg, WPARAM wParam, LPARA
157157
158158 if ( msg == PInvoke . WM_NCDESTROY )
159159 {
160- hwndWrapper . _Dispose ( true , true ) ;
160+ hwndWrapper . Dispose ( true , true ) ;
161161 GC . SuppressFinalize ( hwndWrapper ) ;
162162 }
163163
164164 return ret ;
165165 }
166166
167- private static object _DestroyWindow ( IntPtr hwnd , string className )
167+ private static object DestroyWindow ( IntPtr hwnd , string className )
168168 {
169169 Utility . SafeDestroyWindow ( ref hwnd ) ;
170170 PInvoke . UnregisterClass ( className , PInvoke . GetModuleHandle ( string . Empty ) ) ;
0 commit comments