Changeset 6119
- Timestamp:
- 05/04/11 03:28:39 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Common/3.3/ObjectExtensions.cs
r6114 r6119 34 34 35 35 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; 37 37 objects.Add(obj); 38 38 39 //if (obj is ValueType || obj is string) return; 40 if (obj is Pointer) return; 39 if (obj is ValueType || obj is string) return; 41 40 42 41 IEnumerable enumerable = obj as IEnumerable;
Note: See TracChangeset
for help on using the changeset viewer.