Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.IO;
- using System;
- class Program
- {
- static void Main()
- {
- var test = new Test();
- var proxy = (ITest)test;
- proxy.Display("Method called");
- Console.ReadLine();
- }
- }
- public interface ITest {
- void Display(String msg);
- }
- public class Test : ITest
- {
- public void Display(String msg)
- {
- Console.WriteLine(msg);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement