Changeset 12689 for branches/HiveStatistics/sources/HeuristicLab.Core/3.3/Attributes/CreatableAttribute.cs
- Timestamp:
- 07/08/15 15:32:12 (9 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources
-
branches/HiveStatistics/sources/HeuristicLab.Core
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Core merged: 12616,12622,12649,12664
- Property svn:mergeinfo changed
-
branches/HiveStatistics/sources/HeuristicLab.Core/3.3/Attributes/CreatableAttribute.cs
r12515 r12689 61 61 return tokens.Take(tokens.Count - 1); 62 62 } 63 64 63 private static IEnumerable<string> GetTokensWithOrdering(string rawName) { 65 64 return rawName.Split(new[] { SplitToken }, StringSplitOptions.RemoveEmptyEntries); … … 85 84 public int Priority { get; set; } 86 85 87 88 86 public CreatableAttribute() { 89 87 Category = "Other Items"; 90 88 Priority = int.MaxValue; 91 89 } 92 public CreatableAttribute( objectcategory)90 public CreatableAttribute(string category) 93 91 : this() { 94 Category = (string)category;92 Category = category; 95 93 } 96 94 … … 104 102 else return null; 105 103 } 106 107 104 public static int GetPriority(Type type) { 108 105 var attribs = type.GetCustomAttributes(typeof(CreatableAttribute), false);
Note: See TracChangeset
for help on using the changeset viewer.