471,330 Members | 1,490 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

Re: C# 2.0: new() constraint on constructors having parameters?


Try this,
var t = typeof (T);
var genericObject = (T) Activator.CreateInstance(t, new object[2] {name,
schemaClassName});
*** Sent via Developersdex http://www.developersdex.com ***
Jun 27 '08 #1
0 803

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

18 posts views Thread by David Sworder | last post: by
9 posts views Thread by David Sworder | last post: by
18 posts views Thread by David Sworder | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.