Categories: General Posted by pieterg on 8/18/2006 1:21 AM | Comments (2)
I got a request from one of the lecturers at Technikon to write an application that will calculate the lack of cohesion in methods of a particular class. The API I am developing currently performs alot of nifty functions such as parsing a .csproj file and extracting the referenced assemblies and source code needed to compile the assembly. Programmatically the assembly gets compiled and the methods and fields extracted. The interesting bit was getting the method body and actually translating into a more readable form as I needed to check which methods references which fields and how many times. .NET2.0 provides you with a nice function called MethodInfo.GetMethodBody().GetILAsByteArray(). This is not in a readable format. Translating it to a more readable format was done using System.Reflection.Emit.To cut a long story short, it is alot of fun to play around with these type of things other than coding graphics applications.Here is a screenshot of the application. It will get cleaned up at some stage. Share this post:email it! | bookmark it! | digg it! | reddit! | kick it! | live it!

Comments

payday advance
payday advance United States on 4/20/2010 8:27 PM Discipline is the bridge between goals and accomplishment.
all games
all games United States on 5/11/2010 3:41 AM I found your internet page from altavista and it truly is cool. Thnx for giving out this sort of an incredible blog post!

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading