HI
for some reason Reflector does not include the required "using" for the HwndSourceHook type

example:

public bool m000141()
{
this.f000258 = new c00007c();
if (!this.f000258.m000022(new HwndSourceHook(this.m000058)))
{
return false;
}
.....

and here is the list of generated using:

using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Threading;
using System.Windows.Threading;


the missed one is
using System.Windows.Interop;


2) similar issue for ThreadStart type
missed using is System.Threading
Thanks
alehandro
0

Comments

3 comments

  • Clive Tong
    Hi.

    Do you have an example I can look at?

    When I use the export functionality on the following example:
                bool handled = false;
                System.Windows.Interop.HwndSourceHook foo = null;
                foo.Invoke(new IntPtr(10), 10, new IntPtr(10), new IntPtr(20), ref handled);
    
                ThreadStart start = null;
                start.Invoke();
    

    I do get the following using statements
        using System;
        using System.Threading;
        using System.Windows.Interop;
    

    Thanks.
    Clive Tong
    0
  • alehandro
    Hi,
    here is the sample assembly
    http://www.multiupload.com/ASYE2OUYYG
    try to Export the sources, then compile (it is .NET 4.0 assembly)
    you'll find a couple of missed using directives
    alehandro
    0
  • Clive Tong
    Thank You for the example. I've logged it as RP-954.
    Clive Tong
    0

Add comment

Please sign in to leave a comment.