public static void Main() { MyProxyClass myProxy = new MyProxyClass(typeof(Reverser)); // The real proxy dynamically creates a transparent proxy. Reverser myReverser = (Reverser)myProxy.GetTransparentProxy(); myReverser.SetString("Hello World!"); Console.WriteLine("The out result is : {0}", myReverser.GetReversedString()); }