All Projects → jbevain → Cecil.samples

jbevain / Cecil.samples

Licence: mit
Samples for Cecil

Cecil.Samples

This repository contains samples demonstrating how to use Cecil.

For this project to build, you need to clone Cecil along with it.

All samples are NUnit tests in disguise, and can be run from Visual Studio provided you have a NUnit Test Runner or ReSharper.

A sample is made of two projects: one Target project which will be the subject of the analyze or the modification, and a Sample project containing the code using Cecil manipulating the Target project.

This repository is a work in progress and will be updated with new samples to demonstrate how to use Cecil based on commonly asked questions.

Samples

AddAttributeToMethod

This samples shows how to add a CustomAttribute to a method.

ReplaceMethodCall

This samples shows how to modify the IL code of a method to to replace a method call by another one another..

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].