Home All Groups Group Topic Archive Search About
Author
25 Mar 2005 7:03 PM
Dean Hiller
I would like to clone the verifydesign ant task from Java so I can use it
with NAnt.  Are there any C# byte code libraries available(like Apache's bcel
for Java).
thanks,
dean

Author
25 Mar 2005 7:35 PM
Mattias Sjögren
>I would like to clone the verifydesign ant task from Java so I can use it
>with NAnt.  Are there any C# byte code libraries available(like Apache's bcel
>for Java).

Yes there are, Abstract IL is one:
http://research.microsoft.com/projects/ilx/absil.aspx

But after a quick look at what verifydesign does, it seems like you
should be able to do that with just Reflection.



Mattias

--
Mattias Sjögren [MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Author
25 Mar 2005 8:39 PM
Dean Hiller
Show quote
"Mattias Sjögren" wrote:

>
> >I would like to clone the verifydesign ant task from Java so I can use it
> >with NAnt.  Are there any C# byte code libraries available(like Apache's bcel
> >for Java).
>
> Yes there are, Abstract IL is one:
> http://research.microsoft.com/projects/ilx/absil.aspx
>
> But after a quick look at what verifydesign does, it seems like you
> should be able to do that with just Reflection.
>
>
>
> Mattias
>
> --
> Mattias Sjögren [MVP]  mattias @ mvps.org
> http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
> Please reply only to the newsgroup.
>

Really, I could use reflection to to go through all the local variables in a
method?  That is very interesting.  This could not be done in Java.
thanks,
dean
Author
25 Mar 2005 10:06 PM
Mattias Sjögren
Dean,

>Really, I could use reflection to to go through all the local variables in a
>method?

Well in v2.0 of the framework you can, not in v1.x.

But I don't think that's needed (again based on my limited
understanding of Verifydesign). In .NET, assembly dependencies are
recorded in the AssemblyRef table in metadata, which you can query
with Assembly.GetReferencedAssemblies(). So you don't have to check
the locals in every method to know which assemblies the code depends
on.



Mattias

--
Mattias Sjögren [MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Author
25 Mar 2005 10:37 PM
Dean Hiller
SWEEEEET...thanks,
dean

Show quote
"Mattias Sjögren" wrote:

> Dean,
>
> >Really, I could use reflection to to go through all the local variables in a
> >method?
>
> Well in v2.0 of the framework you can, not in v1.x.
>
> But I don't think that's needed (again based on my limited
> understanding of Verifydesign). In .NET, assembly dependencies are
> recorded in the AssemblyRef table in metadata, which you can query
> with Assembly.GetReferencedAssemblies(). So you don't have to check
> the locals in every method to know which assemblies the code depends
> on.
>
>
>
> Mattias
>
> --
> Mattias Sjögren [MVP]  mattias @ mvps.org
> http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
> Please reply only to the newsgroup.
>

AddThis Social Bookmark Button