KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm attempting to use Assembly.GetType("MyCompany.Class1.Class2") to dynamically get a type from a string. Assembly.GetType("MyCompany.Class1"); works as expected. If I embed a class within another class such as: namespace MyCompany { public class Class1 { //..... public class Class2 { //..... } } } and try to get the type Class2 Assembly.GetType("MyCompany.Class1.Class2") will return a null. I'm using the .NET Frameworks 3.5 SP1 Does anyone know what I'm doing incorrectly and what I can do to fix this? Thanks in advance Kevin D. Wolf Tampa, FL
Tags (comma-separated)
Save Edits
Cancel