Optional arguments and InteropServices

后端 未结 1 1702
青春惊慌失措
青春惊慌失措 2021-01-15 04:18

I\'m using for the firs time optional arguments but I cannot understand difference between those two method definitions:

private void method1([Optional, Defa         


        
1条回答
  •  礼貌的吻别
    2021-01-15 05:20

    Method 1 was present since .NET 1.1.

    Method 2 was introduced with C# 4 (C# did not support optional parameters until then).

    0 讨论(0)
提交回复
热议问题