I''ve seen recently some programmers usingstring s = String.Empty;instead of traditionalstring s = "";Is there any logical reason for this or just OOP snobbery?Regards 解决方案Why use it? Well, sometimes it''s a little more difficult to read "''""''"than it is to read "''" & String.Empty & "''". That''s just one reason...thereare others...but if you go along these lines, then for consistency,String.Empty would be the way to go as well :)Is it snobbery? Sure can be...I know I use it for thatreason...snobbery...what a word :)Mythran 这篇关于为什么,为什么呢。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!