Click here to Skip to main content
15,885,676 members
Articles / Programming Languages / C#

Alternative to Activator.CreateInstance

Rate me:
Please Sign up or sign in to vote.
2.88/5 (3 votes)
31 Jan 2012CPOL 8.8K  
And why don't you just do this?public static T Create() where T : class, new(){ return new T();}

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect CGI
Canada Canada
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions