Changeset 7201 for trunk/sources/HeuristicLab.Core/3.3/Attributes
- Timestamp:
- 12/19/11 03:17:35 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core/3.3/Attributes/ItemAttribute.cs
r5445 r7201 21 21 22 22 using System; 23 using System.Drawing; 23 24 using System.Linq; 24 25 using System.Reflection; … … 82 83 } 83 84 } 85 public static Image GetImage(Type type) { 86 var staticItemImageProperty = type.GetProperty("StaticItemImage", BindingFlags.Static | BindingFlags.Public | BindingFlags.FlattenHierarchy); 87 return staticItemImageProperty == null ? null : (Image)staticItemImageProperty.GetValue(null, null); 88 } 84 89 } 85 90 }
Note: See TracChangeset
for help on using the changeset viewer.