|
ms
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
byte code libraries....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 >I would like to clone the verifydesign ant task from Java so I can use it Yes there are, Abstract IL is one:>with NAnt. Are there any C# byte code libraries available(like Apache's bcel >for Java). 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.
Show quote
"Mattias Sjögren" wrote: Really, I could use reflection to to go through all the local variables in a > > >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. > method? That is very interesting. This could not be done in Java. thanks, dean Dean,
>Really, I could use reflection to to go through all the local variables in a Well in v2.0 of the framework you can, not in v1.x.>method? 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. 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. > |
|||||||||||||||||||||||