473,322 Members | 1,473 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Re: A strange ? syntax

It's a C# shortcut for System.Nullable<Point>

Aug 21 '08 #1
1 1260
On Thu, 21 Aug 2008 11:01:29 -0700, qu************@free.fr
<qu************@free.frwrote:
On 21 août, 19:10, "Peter Morris" <mrpmorri...@SPAMgmail.comwrote:
>It's a C# shortcut for System.Nullable<Point>

Thanks for this quick answer. Where is this defined ? Not found in
Microsoft docs "C Sharp language specification V1.2 nor V3.0" ?
Is there other special notations like this ?
I agree that because of the character being used, it can be difficult to
find the answer using regular search engines. That is indeed
unfortunate. However, it's not true that it's not found in the
documentation or the specification. From the C# 3.0 specification (page
5, "Introduction"):

For each non-nullable value type T there
is a corresponding nullable type T?, which
can hold an additional value "null".

And in 4.1.10 "Nullable Types":

A nullable type is written T?, where T is the
underlying type. This syntax is shorthand for
System.Nullable<T>, and the two forms can be
used interchangeably.

Once you know what it is, it's simple enough to find the MSDN page in the
C# programming guide where it's described. From
http://msdn.microsoft.com/en-us/library/1t3y8s4s.aspx :

The syntax T? is shorthand for Nullable(T),
where T is a value type. The two forms are
interchangeable.

Hope that helps.

Pete
Aug 21 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Allcomp | last post by:
Hello, I have seen something really strange in VB6 If I do a Int ( (5 * 1.2)) , I receive the value 5, but I should receive 6? Is this a bug or something really "normal". I can see that if I...
7
by: Aaron Prohaska | last post by:
I have just run into a problem where I have a page that posts back to itself to execute code, except when the page does the post back it somehow executes code that is in our home page for the site....
2
by: Olaf | last post by:
I have a frameset page witch contains the myFuc() function. The function is accessed from a page in one of the frames in the frameset. An example is shown below. <input...
8
by: Harvey Twyman | last post by:
I have code written under the CCS 'C' Compiler to run on a PIC microcontroller. Code Extract: ------------------------------- char a,b,c; ------------------------------- c = ( a == b );...
11
by: Dagwood Bumstead | last post by:
I play around with js a little... I just don't get this. The file below is just trying out some things... it does exactly what I want (hides/displays some things, no big deal) The problem is...
10
by: hg | last post by:
Hi, I'v been facing some very strange errors lately: one example: def __init__(self): ..... import my_info some_text = my_info.T_SOME_TEXT
1
by: Dariusz Tomon | last post by:
Hello, Till yesterday everything went well but I had to install service pack 2 to windows 2003 serv. After that every time I get strange JS errors (but could not debug it). Example:...
9
by: Dave | last post by:
Hi guys, I have just set up a duplicate server running: apache 2.54, mysql 5.04 and php 5.04 This is the same setup as as the server we are using now, apart from the hardware inside. I have...
7
by: email7373388 | last post by:
I'm working on a program which has a strange operator, :>. This is the syntax: ((unsigned short)( var1)):>((void __near *)( var2 )) Any clue?
8
by: =?GB2312?B?yum09MXt?= | last post by:
today I forgot to include some header,then I found the error message by the compiler is quite strange. so I want to know exactly the inner details of the compiler impletation,if possible. and I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.