点运算符 (.) 用于成员访问。点运算符指定类型或命名空间的成员。例如,点运算符用于访问 .NET Framework 类库中的特定方法:
![]() | |
---|---|
// The class Console in namespace System: System.Console.WriteLine("hello"); |
点运算符 (.) 用于成员访问。点运算符指定类型或命名空间的成员。例如,点运算符用于访问 .NET Framework 类库中的特定方法:
![]() | |
---|---|
// The class Console in namespace System: System.Console.WriteLine("hello"); |