Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7796


Ignore:
Timestamp:
05/11/12 16:24:51 (13 years ago)
Author:
mkommend
Message:

#1846: Excluded DateTime[] and string[] from object graph traversing.

File:
1 edited

Legend:

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

    r7467 r7796  
    5757    ///   * System.Reflection.Pointer
    5858    ///   * Primitives (Boolean, Byte, SByte, Int16, UInt16, Int32, UInt32, Int64, UInt64, IntPtr, UIntPtr, Char, Double, Single)
    59     ///   * string, decimal
     59    ///   * string, decimal, DateTime
    6060    ///   * Arrays of types not collected
    6161    ///   
     
    6767             type == typeof(string) ||
    6868             type == typeof(decimal) ||
     69             type == typeof(DateTime) ||
    6970             typeof(Delegate).IsAssignableFrom(type) ||
    7071             typeof(Pointer).IsAssignableFrom(type) ||
     72             type == typeof(string[]) ||
     73             type == typeof(DateTime[]) ||
    7174             (type.HasElementType && ExcludeType(type.GetElementType()));
    7275    }
Note: See TracChangeset for help on using the changeset viewer.