Пример #1
0
        static void Main()
        {
            CryptoA cryptoA = new CryptoA();

            cryptoA.EnCrypto("TestEn");
            cryptoA.DeCrypto("TestDe");

            CryptoOther cryptoOther = new CryptoOther();
            var         crypto      = new CryptoOtherAdapter(cryptoOther);

            crypto.EnCrypto("TestEn");
            crypto.DeCrypto("TestDe");

            Console.Read();
        }
Пример #2
0
 public CryptoOtherAdapter(CryptoOther cryptoOther)
 {
     _cryptoOther = cryptoOther;
 }