Pages: [1]   Go Down
  Print  
Author Topic: What data types is to be used  (Read 1253 times)
0 Members and 1 Guest are viewing this topic.
smartbrain
  

Member
**

Reputation 73
Offline Offline

Posts: 72


View Profile
 
« on: July 04, 2010, 12:38:28 PM »

Nullabel<T> generic is used for which data types
Logged

Nikita - Smart Brain
Freelancer - Web Developer
MsDotnetHeaven ... Forums
« on: July 04, 2010, 12:38:28 PM »

 Logged
Gaurav Khanna
  
Administrator
Starter
*

Reputation 0
Offline Offline

Posts: 7


View Profile
 
« Reply #1 on: July 05, 2010, 11:58:14 AM »

A type is said to be nullable if it can be assigned a value or can be assigned Nothing, which means the type has no value whatsoever. Consequently, a nullable type can express a value, or that no value exists. For example, a reference type such as String is nullable, whereas a value type such as Int32 is not. A value type cannot be nullable because it has enough capacity to express only the values appropriate for that type; it does not have the additional capacity required to express a value of null.

The Nullable(Of T) structure supports using only a value type as a nullable type because reference types are nullable by design.

The Nullable class provides complementary support for the Nullable(Of T) structure. The Nullable class supports obtaining the underlying type of a nullable type, and comparison and equality operations on pairs of nullable types whose underlying value type does not support generic comparison and equality operations.
Logged
MsDotnetHeaven ... Forums
« Reply #1 on: July 05, 2010, 11:58:14 AM »

 Logged
Pages: [1]   Go Up
  Print  

 
Jump to: