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 | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using System.Runtime.Serialization;
|
---|
6 | using HeuristicLab.Common;
|
---|
7 |
|
---|
8 | namespace 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.