What is the difference between null and string empty in c#?
Answer / Kapil
In C#, a string that contains no characters (i.e., an empty string) is represented by two consecutive quotes: "". On the other hand, null represents a variable or object that has not been assigned a value. These are distinct and should not be treated as equivalent.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is an extension method in c#?
How do I create a dbml file?
How can encapsulation be achieved?
Why is static constructor called first?
How To Maintain Transaction In C#?
1 Answers Phoenix Technologies,
What are controls in c#?
what is meant inheritance. can you exaplain what kind inhertance ussed in your project
What is object type in c#?
I created a class which is inherited from interface IDisposable. Now if I use object of this class with using keyword. Then How the dispose method will get call. Does garbage collector call it or some else.
How we convert private assembly into public assembly?
How to assign default value to nullable types? Did nested nullable types are allowed
How do I move from one form to another in c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)