Changeset 1790 for trunk/sources/HeuristicLab.Persistence/3.3/Default
- Timestamp:
- 05/13/09 16:55:10 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Default/Decomposers/EnumerableDecomposer.cs
r1705 r1790 23 23 type.GetInterface(typeof(IEnumerable).FullName) != null && 24 24 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; 31 26 } 32 27 … … 37 32 public IEnumerable<Tag> Decompose(object obj) { 38 33 foreach (object o in (IEnumerable)obj) { 39 yield return new Tag( null,o);34 yield return new Tag(o); 40 35 } 41 36 }
Note: See TracChangeset
for help on using the changeset viewer.