URL:- http://myjourneytodotnet.blogspot.in/...
Whenever we declare string str=""; then it will create a new object. But whenever we declare string str1=string.Empty then it will create no object which makes string.Empty more efficient. However, string.Empty is a read-only field whereas "" is a compile time Constant.
So, string str1=string.Empty is the most prefered way of Writing the code. But string.Empty can't use inside Switch Case Statement because as it is a read-only so it will generate error.
On this page of the site you can watch the video online Difference between string str=" "; and string str1=string Empty with a duration of hours minute second in good quality, which was uploaded by the user VCreations Tech 16 March 2017, share the link with friends and acquaintances, this video has already been watched 4,047 times on youtube and it was liked by 45 viewers. Enjoy your viewing!