Wrox Programmer Forums
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 30th, 2007, 05:51 AM
Registered User
 
Join Date: Feb 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default int?

what does the declaration of a int with a question mark after it mean?

for example:

int? Count

 
Old March 30th, 2007, 06:01 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

It means it can be set to null. Normally primitives cannot be null, only object types such as String.

--

Joe (Microsoft MVP - XML)
 
Old March 30th, 2007, 06:05 AM
Registered User
 
Join Date: Feb 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks its what i thought :)






Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading An int Doom C# 1 January 7th, 2008 01:43 PM
What's the difference between an int and a long jnrico C++ Programming 4 March 4th, 2007 01:29 AM
Double in Long int walid C# 0 January 20th, 2007 08:50 AM
Convert a char to int!!!!?? vtvb C++ Programming 6 March 18th, 2006 05:51 AM
how can I get the int value from Session[" "] iaarm88 Classic ASP Databases 2 February 8th, 2005 03:38 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.