Using Mono.Cecil could be a good place to start. Cecil is the library used to read and modify CLR assemblies, and will do all the parsing of the files for you before capturing the CIL bytecode.
Another potential library you could use is Boogie
source share