Explain nullable types in c#?
Answer / Amit Kumar Arya
Nullable types allow a variable to hold a value of type `null`, in addition to normal values. In C#, value types (like `int` and `bool`) cannot have a null value by default. To create a nullable version of a value type, you can use the `?` symbol followed by the type name (e.g., `int?` or `bool?`). Nullable types are useful when dealing with optional parameters, database values that may be missing, or collections that might not contain any elements.
| Is This Answer Correct ? | 0 Yes | 0 No |
what is lamda expression?
Can we inherit a private class in chsarp? how? explain(with code) ?
What is a hashset c#?
What is lazy loading entity framework?
What is the difference while using directive vs using statement ?
Is arraylist generic in c#?
What are the important concepts in OOPS
What is the difference between list and arraylist c#?
Can arraylist hold primitive types?
Explain the different ways a method can be overloaded?
What is a hash table c#?
How can you write a class to restrict that only one object of this class can be created (Singleton class)?
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)