|
-
October 22nd, 2008, 02:35 AM
#1
curious declaration
Hello.
I've seen in a Microsoft Workshop a declaration:
Code:
decimal? averagePriceInRange = 0;
I've searched for andwers but I couldn't find what the question mark (?) is for.
Any info is appreciate.
Thanks.
With regards,
dady_fat
-
October 22nd, 2008, 03:08 AM
#2
Re: curious declaration
It's a nullable struct. Exactly the same as writing: Nullable<decimal>
http://msdn.microsoft.com/en-us/library/b3h38hb0.aspx
www.monotorrent.com For all your .NET bittorrent needs
NOTE: My code snippets are just snippets. They demonstrate an idea which can be adapted by you to solve your problem. They are not 100% complete and fully functional solutions equipped with error handling.
-
October 22nd, 2008, 07:50 AM
#3
Re: curious declaration
With regards,
dady_fat
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|