Click here to Skip to main content
15,905,781 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
C#
return get = DirectCast([Assembly].GetEntryAssembly.CreateInstance(fname), ModelForm)
// the above get return values

    return get = (ModelForm)Assembly.GetEntryAssembly().CreateInstance(fname)
// it returns null values
// i want to return get, like this (Model.ProductForm) Model is namespace and ProductForm form name.
Posted
Updated 22-Sep-11 3:50am
v4
Comments
Marc A. Brown 21-Sep-11 14:48pm    
You need to actually ask a question, explain what you're expecting, etc. in order to get any real help.
Sergey Alexandrovich Kryukov 21-Sep-11 18:02pm    
IncompleteQuestion.GoT... :-)
—SA

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900