YoYo.Mono.Ceil.Extensions

It is extented of mono.ceil,the coding style is similar to system.type;Simplified use is simpler and has less code. It can be easily used in IL without additional type conversion.Extending and encapsulating the ILProcessor makes it easier to write IL For examples: TypeReferenceEx type = TypeReferenceEx.Convert(Module.ImportReference(List<T>); TypeReferenceEx newType = type.MakeGenericType(typeof(int)); MethodReferenceEx method = type.GetMethod("Add"); PropertyReferenceEx property = method.GetProperty("Count); MethodReferenceEx getMethod = property.GetMethod; TypeReferenceEx propertyType= property.PropertyType; MethodILProcessor processor = new MethodILProcessor(method); //foreach(var item in list) Action loadValue = ()=> processor.Ldarg(1); using (var scope = new ForeachScope(processor, newType, loadValue)) { } //for(int i = 0; i < 10; i++) using (ForIntIterScope.NumbericForward(processor, 0, 10)) { }


Keywords
Install
Install-Package YoYo.Mono.Ceil.Extensions -Version 1.0.9