1 2 3 4 5 6 |
class User{ public IPAddress IP; } User user = null; if( user == null || user.IP == null ) //这句会发生莫名的错误,程序直接退出,是C#的问题吗? {} |
Tag: C#的疑问
Proudly powered by WordPress.
Theme: Flat 1.5.1 by YoArts.
1 2 3 4 5 6 |
class User{ public IPAddress IP; } User user = null; if( user == null || user.IP == null ) //这句会发生莫名的错误,程序直接退出,是C#的问题吗? {} |