public Powerset(IPowerset template) { nID = template.nID; nArchetype = template.nArchetype; DisplayName = template.DisplayName; SetType = template.SetType; ImageName = template.ImageName; FullName = template.FullName; SetName = template.SetName; Description = template.Description; SubName = template.SubName; ATClass = template.ATClass; _powersetGroup = template.GetGroup(); GroupName = template.GroupName; UIDTrunkSet = template.UIDTrunkSet; nIDTrunkSet = template.nIDTrunkSet; nIDLinkSecondary = template.nIDLinkSecondary; UIDLinkSecondary = template.UIDLinkSecondary; Powers = new IPower[template.Powers.Length]; Power = new int[template.Power.Length]; Array.Copy(template.Power, Power, Power.Length); for (var index = 0; index < Powers.Length; ++index) { Powers[index] = template.Powers[index]; } nIDMutexSets = new int[template.nIDMutexSets.Length]; UIDMutexSets = new string[template.UIDMutexSets.Length]; Array.Copy(template.nIDMutexSets, nIDMutexSets, nIDMutexSets.Length); Array.Copy(template.UIDMutexSets, UIDMutexSets, UIDMutexSets.Length); }
public Powerset(IPowerset template) { this.nID = template.nID; this.nArchetype = template.nArchetype; this.DisplayName = template.DisplayName; this.SetType = template.SetType; this.ImageName = template.ImageName; this.FullName = template.FullName; this.SetName = template.SetName; this.Description = template.Description; this.SubName = template.SubName; this.ATClass = template.ATClass; this._powersetGroup = template.GetGroup(); this.GroupName = template.GroupName; this.UIDTrunkSet = template.UIDTrunkSet; this.nIDTrunkSet = template.nIDTrunkSet; this.nIDLinkSecondary = template.nIDLinkSecondary; this.UIDLinkSecondary = template.UIDLinkSecondary; this.Powers = new IPower[template.Powers.Length]; this.Power = new int[template.Power.Length]; Array.Copy((Array)template.Power, (Array)this.Power, this.Power.Length); for (int index = 0; index < this.Powers.Length; ++index) { this.Powers[index] = template.Powers[index]; } this.nIDMutexSets = new int[template.nIDMutexSets.Length]; this.UIDMutexSets = new string[template.UIDMutexSets.Length]; Array.Copy((Array)template.nIDMutexSets, (Array)this.nIDMutexSets, this.nIDMutexSets.Length); Array.Copy((Array)template.UIDMutexSets, (Array)this.UIDMutexSets, this.UIDMutexSets.Length); }