Set Value on Array: Performance Test

// // Please refer to http://blogs.msdn.com/haibo_luo “Late-bound array operations” post // // To compile this file, you need download Vance’s CodeTimers class // @ http://blogs.msdn.com/vancem/archive/2006/09/21/765648.aspx // // THIS CODE IS PROVIDED “AS IS”, WITH NO WARRANTIES INTENDED OR IMPLIED. USE AT YOUR OWN RISK // using System; using System.Collections.Generic; using System.Text; using PerformanceMeasurement; using System.Reflection.Emit;…

1

Try ILReader

# # Sample code to demonstrate how to use ILReader # By Haibo Luo @ http://blogs.msdn.com/haibo_luo # # THIS CODE IS PROVIDED “AS IS”, WITH NO WARRANTIES INTENDED OR IMPLIED. USE AT YOUR OWN RISK # import clr, sys, System try: clr.AddReference(r’ClrTest.Reflection.ILReader.dll’) except: print ‘\nFail to add reference of ILReader. One simple fix is to…

2

LateNew source

The following code is for the post “Activator.CreateInstance and beyond” **All source code is provided as is, with no warranties intended or implied. Use at your own risk.**Instruction perl sample.pl > sample.cs csc /t:library sample.cs csc /o+ latenew.cs To run: latenew sample.dll 1000 1000 sample.plfor $i (1..2000) { $name = “C$i”; print “public class $name…