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 / aditya

Nullable type is introduced in .NET 2.0. Before 2.0 it was
not possible to assign null to value types.
This was possible with the introduction of Generics in 2.0
and the it would be something like this...

System.Nullable<int> x = new System.Nullable<int>;

or

int? salary = null (new type modifier in 2.0)

Is This Answer Correct ?    30 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we overload the main method in c#?

954


Why interface is required?

839


What are strongly typed objects?

931


Which technology is best for desktop application?

865


Why do we use yield in c#?

923


What is argument in c#?

940


What is the default value of guid in c#?

893


Can a string be null c#?

897


What debugging tools come with the .NET ssSDK?

1245


What is the difference between method overriding and method overloading?

955


What is the purpose of the integer parse method the decimal parse method?

1112


What is hash c#?

968


Does constructor return any value in c#?

955


Explain the difference between and xml documentation tag?

911


Explain about Oops concept

954