Changeset 6119 for trunk/sources


Ignore:
Timestamp:
05/04/11 03:28:39 (11 years ago)
Author:
swagner
Message:

Added some minor changes in CollectObjectGraphObjects (#1424)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Common/3.3/ObjectExtensions.cs

    r6114 r6119  
    3434
    3535    private static void CollectObjectGraphObjects(this object obj, HashSet<object> objects) {
    36       if (obj == null || obj is EventHandler || obj.GetType().IsSubclassOfRawGeneric(typeof(EventHandler<>)) || objects.Contains(obj)) return;
     36      if (obj == null || obj is Delegate || obj is EventHandler || obj.GetType().IsSubclassOfRawGeneric(typeof(EventHandler<>)) || objects.Contains(obj)) return;
    3737      objects.Add(obj);
    3838
    39       //if (obj is ValueType || obj is string) return;
    40       if (obj is Pointer) return;
     39      if (obj is ValueType || obj is string) return;
    4140
    4241      IEnumerable enumerable = obj as IEnumerable;
Note: See TracChangeset for help on using the changeset viewer.