CSharp == 字符串比较
CSharp == 字符串比较
1 | string a = null; |
[2023-11-16 10:01:28.550 +08:00] [INF] MainWindow.xaml.cs TestEqu():46 null==null : True
[2023-11-16 10:01:28.593 +08:00] [INF] MainWindow.xaml.cs TestEqu():49 null==Empty : False
[2023-11-16 10:01:28.593 +08:00] [INF] MainWindow.xaml.cs TestEqu():52 Empty==Empty : True
[2023-11-16 10:01:28.593 +08:00] [INF] MainWindow.xaml.cs TestEqu():55 new string Empty==Empty : True
[2023-11-16 10:01:28.593 +08:00] [INF] MainWindow.xaml.cs TestEqu():59 new string 123==new string 123 : True
[2023-11-16 10:01:28.593 +08:00] [INF] MainWindow.xaml.cs TestEqu():63 new String 123==new String 123 : True
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 WineMonk!
评论