Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

can we assign null value to value type in c#?

Answer Posted / yogesh

Cannot convert null to a value type.
So it is not possible to assign null to value type.

Value types include:
All numeric data types
Boolean, Char, and Date
All structures, even if their members are reference types
Enumerations, since their underlying type is always
Byte, Short, Integer, or Long

Reference types include:
String
All arrays, even if their elements are value types
Class types, such as Form
Delegates

Is This Answer Correct ?    20 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What happens during the process of boxing?

1061


Is arraylist faster than linkedlist?

940


What does the keyword “virtual” declare for a method or property?

958


What are satellite assemblies?

974


What is the difference between static class and singleton class in c#?

928


What are virtual destructors?

971


What is mvc firstordefault?

917


Tell us something about static linking and dynamic linking?

951


what are some characteristics of an array?

959


How to implement delegates in c#.net

1020


How do I count the length of a string in c#?

976


What are circular references?

953


How will you allow a class to be inherited, but prevent the method from being over-ridden?

1026


Explain the difference between “as” and “is” operators used in c#?

962


Explain the difference between abstract class and interface in .net?

910