项目名:ca 添加引用 code.google.com 和icen
class Program
    {
        static void Main(string[] args)
        {
            Assembly assembly = Assembly.Load("code.google.com");
            Ihello hello = (Ihello)assembly.CreateInstance("code.google.com.a");
            hello.printHello("tom");

            Console.ReadLine();
        }
    }

项目名 code.google.com 添加引用 icen
public class a:Ihello
    {
        public void printHello(string name)
        {
            Console.WriteLine("Hello : "+name);
        }
    }

 

项目名 icen
public interface Ihello
    {
        void printHello(string name);
    }

相关文章:

  • 2021-09-02
  • 2021-09-06
  • 2021-11-04
  • 2021-07-01
  • 2021-05-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-11
猜你喜欢
  • 2021-09-04
  • 2021-06-13
  • 2022-12-23
  • 2021-07-31
  • 2021-11-21
  • 2022-02-06
相关资源
相似解决方案