ekonbenefits / impromptu-interface

Static interface to dynamic implementation (duck casting). Uses the DLR combined with Reflect.Emit.
Apache License 2.0
655 stars 67 forks source link

Activator.CreateInstance<TObjectProtoType>()?? #8

Closed apobekiaris closed 10 years ago

apobekiaris commented 10 years ago

Isn't this slower than http://stackoverflow.com/questions/2024435/how-to-pass-ctor-args-in-activator-createinstance-or-use-il

jbtule commented 10 years ago

Not sure, as Impromptu.InvokeConstructor is specifically for dynamic usages, it's a different use case that the generic CreateInstance. Anyway this functionality is soon to be obsoleted as it's been moved to the Dynamitey project as Dynamic.InvokeConstructor