Browse Source

Forms designer: Fixed lookup of generic classes.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1880 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 20 years ago
parent
commit
eb15f39efe
  1. 8
      src/AddIns/DisplayBindings/FormsDesigner/Project/Src/Services/TypeResolutionService.cs

8
src/AddIns/DisplayBindings/FormsDesigner/Project/Src/Services/TypeResolutionService.cs

@ -311,7 +311,13 @@ namespace ICSharpCode.FormsDesigner.Services
if (type == null) { if (type == null) {
IProjectContent pc = this.CallingProject; IProjectContent pc = this.CallingProject;
if (pc != null) { if (pc != null) {
IClass foundClass = pc.GetClass(name.Replace('+', '.')); // find assembly containing type by using SharpDevelop.Dom
IClass foundClass;
if (name.Contains("`")) {
foundClass = pc.GetClass(name.Substring(0, name.IndexOf('`')).Replace('+', '.'));
} else {
foundClass = pc.GetClass(name.Replace('+', '.'));
}
if (foundClass != null) { if (foundClass != null) {
Assembly assembly = LoadAssembly(foundClass.ProjectContent); Assembly assembly = LoadAssembly(foundClass.ProjectContent);
if (assembly != null) { if (assembly != null) {

Loading…
Cancel
Save