Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/04/12 23:29:56 (12 years ago)
Author:
abeham
Message:

#1760: fixed a bug

File:
1 edited

Legend:

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

    r8212 r8220  
    8686        PropertyInfo info = type.GetProperty("Value");
    8787        object value = info.GetValue(obj, null);
    88         if (value != null && excludedMembers.Contains(value, comparer))
     88        if (value != null && !excludedMembers.Contains(value, comparer))
    8989          yield return value;
    9090      } else if (type.IsSubclassOfRawGeneric(typeof(Dictionary<,>)) ||
     
    116116          try {
    117117            fieldValue = f.GetValue(obj);
    118           }
    119           catch (SecurityException) {
     118          } catch (SecurityException) {
    120119            continue;
    121120          }
Note: See TracChangeset for help on using the changeset viewer.