In this aticle, We will discuss about what is the difference between string.Empty and String.Empty in C#.
We can say both the string.Empty and String.Empty are same. Even if we can also say string.Empty is an alias name of String.Empty. But when we use String.Empty then we Should include "using System" Namespace otherwise it will generate an Error.Whenever, we hover the mouse on both string.Empty and String.Empty then it will Show that it comes under System namespace.
0 comments:
Post a Comment