コード例 #1
0
        /// <summary>
        /// Create a copy of this cypher instance.
        /// </summary>
        /// <returns>A copy of the cypher instance, including the current encryption key.</returns>
        public override AbsASTPCypher Clone()
        {
            RightShiftCypher r = (this.MemberwiseClone() as RightShiftCypher);

            r.shift = 1;
            System.Console.WriteLine("\t\t\tRightShiftCypher.Clone: Made a new copy with shift = " + r.shift);
            return(r);
        }
コード例 #2
0
ファイル: ASTPFactory.cs プロジェクト: MoffettMcKenna/GNT
 private ASTPFactory()
 {
     left  = new LeftShiftCypher();
     right = new RightShiftCypher();
 }