/// <summary>
        /// Performs a deep copy of the <see cref="SynchrophasorAnalytics.Measurements.CurrentInjectionPhasorGroup"/> object.
        /// </summary>
        /// <returns>A deep copy of the target <see cref="SynchrophasorAnalytics.Measurements.CurrentInjectionPhasorGroup"/>.</returns>
        public CurrentInjectionPhasorGroup Copy()
        {
            CurrentInjectionPhasorGroup copy = (CurrentInjectionPhasorGroup)this.MemberwiseClone();

            copy.Status           = this.Status.Copy();
            copy.PositiveSequence = PositiveSequence.Copy();
            copy.PhaseA           = PhaseA.Copy();
            copy.PhaseB           = PhaseB.Copy();
            copy.PhaseC           = PhaseC.Copy();
            return(copy);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Performs a deep copy of the <see cref="VoltagePhasorGroup"/> object.
        /// </summary>
        /// <returns>A deep copy of the target <see cref="VoltagePhasorGroup"/>.</returns>
        public VoltagePhasorGroup Copy()
        {
            VoltagePhasorGroup copy = (VoltagePhasorGroup)this.MemberwiseClone();

            copy.Status           = this.Status.Copy();
            copy.PositiveSequence = PositiveSequence.Copy();
            copy.PhaseA           = PhaseA.Copy();
            copy.PhaseB           = PhaseB.Copy();
            copy.PhaseC           = PhaseC.Copy();
            return(copy);
        }