Changeset 8 for trunk/sources/HeuristicLab.PluginInfrastructure/BaseClasses
- Timestamp:
- 02/20/08 11:08:04 (17 years ago)
- Location:
- trunk/sources/HeuristicLab.PluginInfrastructure/BaseClasses
- Files:
-
- 2 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
Note: See TracChangeset
for help on using the changeset viewer.