Changeset 8 for trunk/sources/HeuristicLab.PluginInfrastructure
- Timestamp:
- 02/20/08 11:08:04 (17 years ago)
- Location:
- trunk/sources/HeuristicLab.PluginInfrastructure
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/BaseClasses/ApplicationBase.cs
r2 r8 39 39 40 40 // exactly one attribute of the type ClassInfoAttribute must be given 41 Trace.Assert(pluginAttributes.Length == 1); 41 if(pluginAttributes.Length != 1) { 42 throw new InvalidPluginException(); 43 } 42 44 43 45 // after the assertion we are sure that the array access will not fail -
trunk/sources/HeuristicLab.PluginInfrastructure/BaseClasses/PluginBase.cs
r2 r8 44 44 45 45 // exactly one attribute of the type ClassInfoAttribute must be given 46 Trace.Assert(pluginAttributes.Length == 1); 46 if(pluginAttributes.Length != 1) { 47 throw new InvalidPluginException(); 48 } 47 49 48 50 // after the assertion we are sure that the array access will not fail -
trunk/sources/HeuristicLab.PluginInfrastructure/HeuristicLab.PluginInfrastructure.csproj
r2 r8 55 55 <Compile Include="Interfaces\IControl.cs" /> 56 56 <Compile Include="Interfaces\IControlManager.cs" /> 57 <Compile Include="InvalidPluginException.cs" /> 57 58 <Compile Include="PluginManager.cs" /> 58 59 <Compile Include="PluginManagerActionEventArgs.cs" /> -
trunk/sources/HeuristicLab.PluginInfrastructure/Loader.cs
r2 r8 217 217 this.pluginAssemblies[pluginName] = pluginAssemblies; 218 218 } else { 219 Trace.Assert(false);219 throw new InvalidPluginException(); 220 220 } 221 221 }
Note: See TracChangeset
for help on using the changeset viewer.