Changeset 5741 for trunk/sources/HeuristicLab.PluginInfrastructure
- Timestamp:
- 03/17/11 17:02:34 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.PluginInfrastructure/3.3
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/3.3/DefaultApplicationManager.cs
r5632 r5741 258 258 return from t in assembly.GetTypes() 259 259 where CheckTypeCompatibility(type, t) 260 where onlyInstantiable == false || (!t.IsAbstract && !t.IsInterface && !t.HasElementType) 260 where onlyInstantiable == false || 261 (!t.IsAbstract && !t.IsInterface && !t.HasElementType) 262 where !IsNonDiscoverableType(t) 261 263 select BuildType(t, type); 264 } 265 266 private static bool IsNonDiscoverableType(Type t) { 267 return t.GetCustomAttributes(typeof(NonDiscoverableTypeAttribute), false).Any(); 262 268 } 263 269 -
trunk/sources/HeuristicLab.PluginInfrastructure/3.3/HeuristicLab.PluginInfrastructure-3.3.csproj
r5163 r5741 21 21 </UpgradeBackupLocation> 22 22 <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> 23 <TargetFrameworkProfile></TargetFrameworkProfile> 23 <TargetFrameworkProfile> 24 </TargetFrameworkProfile> 24 25 <PublishUrl>publish\</PublishUrl> 25 26 <Install>true</Install> … … 213 214 <Compile Include="Attributes\ApplicationAttribute.cs" /> 214 215 <Compile Include="Attributes\ContactInformationAttribute.cs" /> 216 <Compile Include="Attributes\NonDiscoverableTypeAttribute.cs" /> 215 217 <Compile Include="Attributes\PluginAttribute.cs" /> 216 218 <Compile Include="Attributes\PluginDependencyAttribute.cs" /> -
trunk/sources/HeuristicLab.PluginInfrastructure/3.3/LightweightApplicationManager.cs
r5445 r5741 122 122 where CheckTypeCompatibility(type, t) 123 123 where onlyInstantiable == false || (!t.IsAbstract && !t.IsInterface && !t.HasElementType) 124 where !IsNonDiscoverableType(t) 124 125 select BuildType(t, type); 125 126 } … … 130 131 return Enumerable.Empty<Type>(); 131 132 } 133 } 134 135 private static bool IsNonDiscoverableType(Type t) { 136 return t.GetCustomAttributes(typeof(NonDiscoverableTypeAttribute), false).Any(); 132 137 } 133 138
Note: See TracChangeset
for help on using the changeset viewer.