Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/13/09 16:55:10 (16 years ago)
Author:
epitzer
Message:

Remove redundant constructor check. (#603)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/Decomposers/EnumerableDecomposer.cs

    r1705 r1790  
    2323        type.GetInterface(typeof(IEnumerable).FullName) != null &&
    2424        type.GetMethod("Add") != null &&
    25         type.GetMethod("Add").GetParameters().Length == 1 &&
    26         type.GetConstructor(
    27           BindingFlags.Public |
    28           BindingFlags.NonPublic |
    29           BindingFlags.Instance,
    30           null, Type.EmptyTypes, null) != null;
     25        type.GetMethod("Add").GetParameters().Length == 1;
    3126    }
    3227
     
    3732    public IEnumerable<Tag> Decompose(object obj) {
    3833      foreach (object o in (IEnumerable)obj) {
    39         yield return new Tag(null, o);
     34        yield return new Tag(o);
    4035      }
    4136    }
Note: See TracChangeset for help on using the changeset viewer.