Tiny type/method call indexer created because Visual Studio's Find All References
only searches currently opened projects.
Mostly created as an excuse to mess around with cci.metadata and MongoDB
Default api for injecting ops is kinda ugly
(method.Body as MethodBody).Operations.Insert(0
, new Operation()
{
OperationCode = OperationCode.Ldstr
, Value = "hello world" });
A new Block type, indexers, and some static type checks later we get
Injector.Inject(method, new Block()
[Ops.Ldstr, "hello world"]
[Ops.Call, Console.WriteLine]);
Okay so the console.writeline delegate was a lie. Pretend it's actually the IMethodDefinition