Changeset 13338 for branches/RefactorPluginInfrastructure-2522/HeuristicLab.PluginInfrastructure/3.3/AssemblyExtensions.cs
- Timestamp:
- 11/23/15 16:14:30 (8 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/RefactorPluginInfrastructure-2522/HeuristicLab.PluginInfrastructure/3.3/AssemblyExtensions.cs
r13337 r13338 24 24 25 25 namespace HeuristicLab.PluginInfrastructure { 26 public static class Assembly Helpers {26 public static class AssemblyExtensions { 27 27 //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) 29 29 where T : Attribute { 30 30 if (assembly == null || string.IsNullOrEmpty(propertyName)) { … … 49 49 } 50 50 51 public static string GetFileVersion( Assembly assembly) {51 public static string GetFileVersion(this Assembly assembly) { 52 52 return GetCustomAttributeValue<AssemblyFileVersionAttribute>(assembly, "Version"); 53 53 }
Note: See TracChangeset
for help on using the changeset viewer.