CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2003
    Location
    Cluj, Romania
    Posts
    9

    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

  2. #2
    Join Date
    May 2007
    Posts
    1,546

    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.

  3. #3
    Join Date
    Apr 2003
    Location
    Cluj, Romania
    Posts
    9

    Re: curious declaration

    Many thanks.
    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
  •  





Click Here to Expand Forum to Full Width

Featured