Obviously he/she isn't. :)
In short, it looks like you're using C# 2.0 and trying to cast an
integer to a nullable integer. This is likely to happen, for example,
if you declare an integer as nullable, and try and assign an integer
value.
int? nullableInt = 10; // Notice the question mark.
int normalInt = 5;
nullableInt = null; // This is not allowed with normal integers.
normalInt = nullableInt; // Compiler error - type mismatch.
Nick
WTH wrote:
jy****@gmail.com <jy****@gmail.comloquated like no one had ever loquated
before with:
I'm getting a compiler error that says "Cannot convert from int[] to
int?[]".
Are you familiar with 'nullable types'?
WTH
--
"Shanks went down on the pitch, and I had to get this all red kit on,
run down the tunnel, up the stairs and out. I'd gone about five yards,
and Shanks was shouting, 'That's it! Bloody hell, he looks about seven
foot!' So we started to play in red." - Ron Yeats