Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Hive/sources/HeuristicLab.Hive.New/HeuristicLab.Services.Hive.Common/3.3/DataTransfer/HiveItem.cs @ 4629

Last change on this file since 4629 was 4629, checked in by cneumuel, 13 years ago
  • worked on new hive structure
  • created IIS hostable website for hive (old structure)

(#1233)

File size: 670 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Runtime.Serialization;
6using HeuristicLab.Common;
7
8namespace HeuristicLab.Services.Hive.Common.DataTransfer {
9  [DataContract]
10  public abstract class HiveItem : IDeepCloneable {
11    [DataMember]
12    public Guid Id { get; set; }
13
14    public virtual IDeepCloneable Clone(Cloner cloner) {
15      HiveItem clone = (HiveItem)Activator.CreateInstance(this.GetType(), true);
16      cloner.RegisterClonedObject(this, clone);
17      clone.Id = this.Id;
18      return clone;
19    }
20
21    public object Clone() {
22      return Clone(new Cloner());
23    }
24  }
25}
Note: See TracBrowser for help on using the repository browser.