序言

动态绑定-dynamic

class Program
{
    static void Main(string[] args)
    {
        dynamic dyn = 1;
        object obj = 1;

        // Rest the mouse pointer over dyn and obj to see their
        // types at compile time.
        System.Console.WriteLine(dyn.GetType());
        System.Console.WriteLine(obj.GetType());
    }
}
View Code

相关文章:

  • 2022-12-23
  • 2021-09-24
  • 2022-12-23
  • 2021-06-27
  • 2021-05-24
  • 2022-02-07
  • 2022-01-15
猜你喜欢
  • 2021-09-03
  • 2021-08-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-18
  • 2022-12-23
相关资源
相似解决方案