My Cart
Log In
Register
an ASP.NET Open Source CMS & eCommerce platform
Search:
Home
Open Source Edition
DotShoppingCart Suite
Services
Support
Blog
Marketplace
Buy
Forums
Video Tutorials
Documentation
Premium Support
Submit Support Ticket
Home
>
DotShoppingCart Forums
>
Development
>
General Programming
>
C# Variable Type Question
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
website
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
website
Re: C# Variable Type Question
It's nullable type. Check
http://msdn.microsoft.com/en-us/library/2cf62fcy(VS.80).aspx
.
DotShoppingCart Staff
3/28/2009 4:40:21 PM
micahsdad1402
Posts: 31
Joined: 11/2/2008
Location:Melboune Australia
website
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