TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
harshil oh
NA
3
6.1k
declare Genric type via reflection
Sep 20 2010 7:18 AM
hi,
i like to know about how to instantiate generic object with reflection
pls find my example,
I want to create an Object of "hello" with generic type "ClassABC"
//want to Create hello object,with generic type will declare at run time only
public void DoHello(String ClassName)
{
Type TypeClassABC= Type.GetType(ClassName);
hello _hello= new hello<TypeClassABC>();
}
But get a build error:
the type or namespace "TypeClassABC" could not be found,
Reply
Answers (
3
)
Data type mismatch in criteria expression.
Which microsoft certification I should go for?