Posted 16 years ago
by Hu Xuenian
Version: 4.0.0277
Platform: .NET 2.0
Environment: Windows XP (32-bit)
Hi
In the ActiPro example inside the DotNetReflectionForm I have created a button. Here it adds the ColorButton.cs as a file load, using
following statement
dotNetProjectResolver.SourceProjectContent.LoadForFile(cSharpLanguage, Program.ProjectPath + @"ColorButton.cs");
After this, I execute the button click
private void button1_Click(object sender, EventArgs e)
{
IDomType type = dotNetProjectResolver.GetType(null, "TestApplication.ColorButton", DomBindingFlags.AllAccessTypes);
/// I am getting "type" is null here
return;
}
I am unable to get the IDomType. Is there anything wrong in here?
We have the simillar situation in our project where user adds the type/dynamic type using the syntaxeditor of Actipro. since user can type anything I want to validate it against DotNetProjectResolver. but it fails.
is it a bug ? please clarify if you have another ways.
thanks
Paresh
In the ActiPro example inside the DotNetReflectionForm I have created a button. Here it adds the ColorButton.cs as a file load, using
following statement
dotNetProjectResolver.SourceProjectContent.LoadForFile(cSharpLanguage, Program.ProjectPath + @"ColorButton.cs");
After this, I execute the button click
private void button1_Click(object sender, EventArgs e)
{
IDomType type = dotNetProjectResolver.GetType(null, "TestApplication.ColorButton", DomBindingFlags.AllAccessTypes);
/// I am getting "type" is null here
return;
}
I am unable to get the IDomType. Is there anything wrong in here?
We have the simillar situation in our project where user adds the type/dynamic type using the syntaxeditor of Actipro. since user can type anything I want to validate it against DotNetProjectResolver. but it fails.
is it a bug ? please clarify if you have another ways.
thanks
Paresh