C#的反射学习代码及实例演示

From , 5 Years ago, written in C#, viewed 96 times.
URL https://pastebin.vip/view/16c244e3
  1.  
  2.  
  3. using System;
  4. namespace ReflectionTest
  5. {
  6. public class WriteTest
  7. {
  8. //public method with parametors
  9.         public void WriteString(string s, int i)
  10.         {
  11.                 Console.WriteLine("WriteString:" + s + i.ToString());
  12.         }
  13. //static method with only one parametor
  14.         public static void StaticWriteString(string s)
  15.         {
  16.                 Console.WriteLine("StaticWriteString:" + s);
  17.         }
  18. //static method with no parametor
  19.         public static void NoneParaWriteString()
  20.         {
  21.                 Console.WriteLine("NoParaWriteString");
  22.         }
  23. }
  24. }
  25.  
  26.  
  27. //csharp/6014

Reply to "C#的反射学习代码及实例演示"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website