Changeset 13494


Ignore:
Timestamp:
01/11/16 12:56:04 (4 years ago)
Author:
pfleck
Message:

#2557
Excluded all Types from System.Reflection.Emit from object graph traversal.

File:
1 edited

Legend:

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

    r12012 r13494  
    6666    ///   * string, decimal, DateTime
    6767    ///   * Arrays of types not collected
     68    ///   * All types from System.Reflection.Emit
    6869    /// </summary>
    6970    private static bool ExcludeType(Type type) {
     
    7778             typeof(Delegate).IsAssignableFrom(type) ||
    7879             typeof(Pointer).IsAssignableFrom(type) ||
    79              type == typeof(System.Reflection.Emit.SignatureHelper) ||
     80             type.Namespace != "System.Reflection.Emit" ||
    8081             (type.HasElementType && ExcludeType(type.GetElementType()));
    8182    }
Note: See TracChangeset for help on using the changeset viewer.