/// <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() { LeftShiftCypher l = (this.MemberwiseClone() as LeftShiftCypher); l.shift = 1; System.Console.WriteLine("\t\t\tLeftShiftCypher.Clone: Made a new copy with shift = " + l.shift); return(l); }
private ASTPFactory() { left = new LeftShiftCypher(); right = new RightShiftCypher(); }