C#using两种用法
摘要:1、调用静态方法需要附加命名空间和类型名前缀 using static System.Console; 调用静态方法需要附加命名空间和类型名前缀。例如在调用System.Console.WriteLine时,虽然调用的方法是WriteLine(),且当前上下文无其他同名方法,但仍然必须附加命名空间(
阅读全文
posted @ 2022-05-29 13:22
posted @ 2022-05-29 13:22
posted @ 2022-05-26 17:53
posted @ 2022-05-10 18:17
posted @ 2022-05-03 18:33
posted @ 2022-05-03 18:15
posted @ 2022-05-02 17:25
posted @ 2022-05-01 09:42