ConstructorInfo – How To Make Reflection In DotNet Faster For Instantiation
devleader.substack.com
Recently I wrote an article where I wanted to compare a popular way of creating object instances with DotNet reflection to another. In that article, I put Activator.CreateInstance head-to-head with Type.InvokeMember to see which had better performance. The result was Activator.CreateInstance in one specific case — but another champion would emerge: ConstructorInfo.
ConstructorInfo – How To Make Reflection In DotNet Faster For Instantiation
ConstructorInfo – How To Make Reflection In…
ConstructorInfo – How To Make Reflection In DotNet Faster For Instantiation
Recently I wrote an article where I wanted to compare a popular way of creating object instances with DotNet reflection to another. In that article, I put Activator.CreateInstance head-to-head with Type.InvokeMember to see which had better performance. The result was Activator.CreateInstance in one specific case — but another champion would emerge: ConstructorInfo.