Changeset 4133 for branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/ResponseList.cs
- Timestamp:
- 08/02/10 17:27:24 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/ResponseList.cs
r1530 r4133 27 27 using System.ServiceModel; 28 28 using HeuristicLab.Hive.Contracts.BusinessObjects; 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 using HeuristicLab.Common; 29 31 30 32 namespace HeuristicLab.Hive.Contracts { 31 33 [StorableClass] 32 34 [DataContract] 33 public class ResponseList<T> : Response { 35 public class ResponseList<T> : Response 36 where T : IDeepCloneable { 37 [Storable] 34 38 [DataMember] 35 39 public IList<T> List { get; set; } 36 40 41 public override Common.IDeepCloneable Clone(Common.Cloner cloner) { 42 ResponseList<T> clone = (ResponseList<T>)base.Clone(cloner); 43 clone.List = (from elem in List 44 select (T)cloner.Clone(elem)).ToList(); 45 return clone; 46 } 37 47 } 38 48 }
Note: See TracChangeset
for help on using the changeset viewer.