Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1428 doesn't recognize nullable types in C#

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
partnerinflight Posted - Oct 27 2005 : 4:39:35 PM
Variables declared as nullable types are colored red.
7   L A T E S T    R E P L I E S    (Newest First)
support Posted - Apr 14 2006 : 1:16:05 PM
Fixed in build 1445.
Christopher Holt Posted - Nov 29 2005 : 4:34:57 PM
Thanks feline.
feline Posted - Nov 29 2005 : 4:27:06 PM
sorry, but no progress to report on this yet. there are quite a lot of outstanding bugs to address, so it is a case of working through them.

this thread should be updated when a fix is released.
Christopher Holt Posted - Nov 29 2005 : 10:56:22 AM
This is still broken in the general release. I was wondering if there is a plan to fix this anytime soon?

Thanks.
feline Posted - Nov 07 2005 : 4:51:09 PM
when you say they are coloured red, if you mean that VA is underlining them with a red line to indicate a mistyped symbol then i am getting the same thing.

case=867

i have dabbled with C# in VS 2003 but have yet to look at C# in VS 2005. i will one of these days, i am sure
partnerinflight Posted - Nov 07 2005 : 1:07:04 PM
Yup, it's a new concept in C# 2.0. To define an int, say, that can have the value of null you define it like this:

int? i = 5;
int? j = null;

so on. There are two operators to keep in mind: the nullable -- ? -- operaton, and the null coalescing operator -- ?? -- where

int j = i == null ? 5 : i;

is expressed as

int j = i ?? 5;

where i is a nullable int. There are some good codeproject articles on nullable types; might want to check them out.
feline Posted - Oct 27 2005 : 6:57:26 PM
i don't recognise the concept of a nullable type. can you post a short code snippet to show me what you are doing? which IDE are you using? is this something new in C# 2?

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000