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(); }
public CryptoOtherAdapter(CryptoOther cryptoOther) { _cryptoOther = cryptoOther; }