Hi, I have coverted project to .Net 4.0 and folowing code doesn't work:
typeof(RuntimeTypeHandle).GetMethod("Allocate", BindingFlags.Instance | BindingFlags.NonPublic).Invoke(type.TypeHandle, null)
It seems that there is no more Allocate method in RuntimeTypeHandle class. GetMethod returns null.
What is the analog in .Net 4.0?