Problems with Nullable<T>
According to tracker #7536, Nullable support wasn't working, but was fixed
in the 201 build series. I'm using ReSharper 2.0.201.5728 in VS2005B2 and
I'm having trouble with Nullable support.
I've got a working solution with Nullable int and DateTime variables.
ReSharper's marking everything with them as an error.
1) the statement
Nullable date = new DateTime(2100, 1, 1);
is marked as "Cannot convert source type 'System.DateTime' to target type
'System.Nullable
2) the statement
Assert.AreEqual(0, Nullable.Compare(negVal, (Nullable)ae.ActualValue),
"Failed compare");
is marked as "Cannot resolve symbol 'Compare'". This error's also not
underlined in red in the editor.
3) the statement
Nullable negVal = -1;
is marked as "Cannot convert source type 'int' to target type
'System.Nullable]]>'
I just submitted this to Tracker, but was unsure if I should also post it
here.
Please sign in to leave a comment.