Changeset 7981
- Timestamp:
- 06/11/12 12:14:02 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Common/3.3/ObjectExtensions.cs
r7796 r7981 31 31 namespace HeuristicLab.Common { 32 32 public static class ObjectExtensions { 33 public static IEnumerable<T> ToEnumerable<T>(this T item) { 34 return new[] { item }; 35 } 36 33 37 public static IEnumerable<object> GetObjectGraphObjects(this object obj, HashSet<string> excludedMembers = null, bool excludeStaticMembers = false) { 34 38 if (obj == null) return Enumerable.Empty<object>();
Note: See TracChangeset
for help on using the changeset viewer.