an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Development > General Programming > C# Variable Type Question
Last Post 3/28/2009 4:40:21 PM By micahsdad1402. 2 replies.
3/28/2009 3:08:20 AM
micahsdad1402
Posts: 31
Joined: 11/2/2008
Location:Melboune Australia
C# Variable Type Question
Excuse my ingnorance, but I've looked for the answer on Google, MSDN, text books and not found the answer.
 
What's the difference (if any) between
 
private decimal? price
 
and
 
private decimal price
 
 
Just don't get the significance of the "?"
3/28/2009 10:22:47 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: C# Variable Type Question
DotShoppingCart Staff
3/28/2009 4:40:21 PM
micahsdad1402
Posts: 31
Joined: 11/2/2008
Location:Melboune Australia
Re: C# Variable Type Question
Lukesy,
 
thanks looked everywhere but couldn't find it because I didn't know what it meant, and search engines ignored the "?" even when I put it in quotes.
 
Now I know I need to use it for what I'm doing. (Adding a "Call For Price" option).
 
JJ