Changeset 2726
- Timestamp:
- 01/30/10 05:00:47 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm/3.2/MainFormManager.cs
r2724 r2726 83 83 viewTypes[i] = TransformGenericTypeDefinition(viewTypes[i], contentType); 84 84 } 85 return viewTypes ;85 return viewTypes.Where(t => t != null); 86 86 } 87 87 … … 150 150 return viewType; 151 151 152 Type contentTypeBaseType = contentType;152 Type contentTypeBaseType = null; 153 153 foreach (Type type in ContentAttribute.GetViewableTypes(viewType)) { 154 contentTypeBaseType = contentType; 154 155 while (contentTypeBaseType != null && (!contentTypeBaseType.IsGenericType || 155 156 type.GetGenericTypeDefinition() != contentTypeBaseType.GetGenericTypeDefinition())) … … 160 161 IEnumerable<Type> implementedInterfaces = contentType.GetInterfaces().Where(t => t.IsGenericType); 161 162 foreach (Type implementedInterface in implementedInterfaces) { 162 if (implementedInterface.CheckGenericTypes( viewType))163 if (implementedInterface.CheckGenericTypes(type)) 163 164 contentTypeBaseType = implementedInterface; 164 165 } 165 166 } 167 if (contentTypeBaseType != null) break; 166 168 } 167 169
Note: See TracChangeset
for help on using the changeset viewer.