Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/01/11 17:48:53 (13 years ago)
Author:
mkommend
Message:

#1479: Integrated trunk changes.

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  
    2929  /// Plugin class for HeuristicLab.Common plugin.
    3030  /// </summary>
    31   [Plugin("HeuristicLab.Common", "3.3.4.$WCREV$")]
     31  [Plugin("HeuristicLab.Common", "3.3.5.$WCREV$")]
    3232  [PluginFile("HeuristicLab.Common-3.3.dll", PluginFileType.Assembly)]
    3333  public class HeuristicLabCommonPlugin : PluginBase {
  • branches/GP.Grammar.Editor/HeuristicLab.Common/3.3/ObjectExtensions.cs

    r6493 r6618  
    2626using System.Linq;
    2727using System.Reflection;
     28using System.Threading;
    2829
    2930namespace HeuristicLab.Common {
     
    3839      while (stack.Count > 0) {
    3940        object current = stack.Pop();
    40         Type type = obj.GetType();
    4141        objects.Add(current);
    4242
     
    7171      Type type = obj.GetType();
    7272
    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) {
    8084        var dictionary = obj as IDictionary;
    8185        foreach (object value in dictionary.Keys)
  • branches/GP.Grammar.Editor/HeuristicLab.Common/3.3/Properties/AssemblyInfo.frame

    r6099 r6618  
    5454// by using the '*' as shown below:
    5555[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.