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
Gustavo
NA
1.3k
455.3k
How Do I: Run a Dynamic Class?
Apr 29 2010 11:18 AM
Hello:
This is part 2 of an issue.
Initially I wanted to take a TextBox value and run that class. The following code is what I have been tolod to do. It took a while to get it to compile. However, now I need to know how to run/execute the class.
TheClass = textBoxClass.Text;
Assembly
TheAssembly;
TheAssembly =
Assembly
.GetExecutingAssembly();
object
MyDynamicClass = TheAssembly.CreateInstance(
"ICEPack.Class"
+ TheClass);
MyDynamicClass();
//<<<ERROR - How do I run the class MyDynamicClass?
Reply
Answers (
7
)
ASP.NET Developing Own Time Extender
console application session variable