Perfect, sorry for the late thank you.

-- Kevin J.

On Feb 25, 2:57 am, Jb Evain <[email protected]> wrote:
> Hi,
>
> On Fri, Feb 25, 2011 at 3:13 AM, Kevin Jones <[email protected]> wrote:
> > Is there a preferred way to test if a file has a Valid PE Header?
> > Currently I am attempting to load it using
> > AssemblyDefinition.ReadAssembly and catching the Image Format
> > Exception, but I was wondering if there is a "cleaner" way to do this.
>
> I have:
>
> https://github.com/jbevain/mono.reflection/blob/master/Mono.Reflectio...
>
> It's a fast test to know if the file looks like a managed module.
>
> Jb

-- 
--
mono-cecil

Reply via email to