Declaring a nullable GUID C# with Example



Declaring a nullable GUID C# with Example

Like other value types, GUID also has a nullable type which can take null value. 
Declaration : 
Guid? myGuidVar = null; 
 

This is particularly useful when retrieving data from the data base when there is a possibility that value from a table 
is NULL. 
 

0 Comment's

Comment Form

Submit Comment