Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/23/15 16:14:30 (8 years ago)
Author:
gkronber
Message:

#2522:

  • moved UI components out of HeuristicLab.PluginInfrastructure -> HeuristicLab.PluginInfrastructure.UI
  • moved ErrorDialog to HeuristicLab.MainForm.WindowsForms
  • moved ErrorHandling (for building an error message string) to HeuristicLab.Common
  • Changed exception handlers in Views to use MainForm.ShowError()
  • Changed usages for ErrorDialog in non-UI components to throw exceptions instead.
File:
1 moved

Legend:

Unmodified
Added
Removed
  • branches/RefactorPluginInfrastructure-2522/HeuristicLab.PluginInfrastructure/3.3/AssemblyExtensions.cs

    r13337 r13338  
    2424
    2525namespace HeuristicLab.PluginInfrastructure {
    26   public static class AssemblyHelpers {
     26  public static class AssemblyExtensions {
    2727    //Based on the code from http://stackoverflow.com/a/7156425
    28     public static string GetCustomAttributeValue<T>(Assembly assembly, string propertyName)
     28    public static string GetCustomAttributeValue<T>(this Assembly assembly, string propertyName)
    2929       where T : Attribute {
    3030      if (assembly == null || string.IsNullOrEmpty(propertyName)) {
     
    4949    }
    5050
    51     public static string GetFileVersion(Assembly assembly) {
     51    public static string GetFileVersion(this Assembly assembly) {
    5252      return GetCustomAttributeValue<AssemblyFileVersionAttribute>(assembly, "Version");
    5353    }
Note: See TracChangeset for help on using the changeset viewer.