Changeset 6618 for branches/GP.Grammar.Editor/HeuristicLab.Common
- Timestamp:
- 08/01/11 17:48:53 (13 years ago)
- Location:
- branches/GP.Grammar.Editor/HeuristicLab.Common/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP.Grammar.Editor/HeuristicLab.Common/3.3/HeuristicLabCommonPlugin.cs.frame
r6099 r6618 29 29 /// Plugin class for HeuristicLab.Common plugin. 30 30 /// </summary> 31 [Plugin("HeuristicLab.Common", "3.3. 4.$WCREV$")]31 [Plugin("HeuristicLab.Common", "3.3.5.$WCREV$")] 32 32 [PluginFile("HeuristicLab.Common-3.3.dll", PluginFileType.Assembly)] 33 33 public class HeuristicLabCommonPlugin : PluginBase { -
branches/GP.Grammar.Editor/HeuristicLab.Common/3.3/ObjectExtensions.cs
r6493 r6618 26 26 using System.Linq; 27 27 using System.Reflection; 28 using System.Threading; 28 29 29 30 namespace HeuristicLab.Common { … … 38 39 while (stack.Count > 0) { 39 40 object current = stack.Pop(); 40 Type type = obj.GetType();41 41 objects.Add(current); 42 42 … … 71 71 Type type = obj.GetType(); 72 72 73 if (type.IsSubclassOfRawGeneric(typeof(Dictionary<,>)) || 74 type.IsSubclassOfRawGeneric(typeof(SortedDictionary<,>)) || 75 type.IsSubclassOfRawGeneric(typeof(SortedList<,>)) || 76 obj is SortedList || 77 obj is OrderedDictionary || 78 obj is ListDictionary || 79 obj is Hashtable) { 73 if (type.IsSubclassOfRawGeneric(typeof(ThreadLocal<>))) { 74 PropertyInfo info = type.GetProperty("Value"); 75 object value = info.GetValue(obj, null); 76 if (value != null) yield return value; 77 } else if (type.IsSubclassOfRawGeneric(typeof(Dictionary<,>)) || 78 type.IsSubclassOfRawGeneric(typeof(SortedDictionary<,>)) || 79 type.IsSubclassOfRawGeneric(typeof(SortedList<,>)) || 80 obj is SortedList || 81 obj is OrderedDictionary || 82 obj is ListDictionary || 83 obj is Hashtable) { 80 84 var dictionary = obj as IDictionary; 81 85 foreach (object value in dictionary.Keys) -
branches/GP.Grammar.Editor/HeuristicLab.Common/3.3/Properties/AssemblyInfo.frame
r6099 r6618 54 54 // by using the '*' as shown below: 55 55 [assembly: AssemblyVersion("3.3.0.0")] 56 [assembly: AssemblyFileVersion("3.3. 4.$WCREV$")]56 [assembly: AssemblyFileVersion("3.3.5.$WCREV$")]
Note: See TracChangeset
for help on using the changeset viewer.