I have a list of nullable ushorts :
List<ushort?> items = new List<ushort?>();
and I'm trying to get the following to work, but I can't - for some reason.
int GetIndex(ushort value)
{
return ?
}
what I'm trying is :
ushort? x = value;
int idx = items.FindIndex(x);
But I'm getting :
"Best overloaded method has some invalid arguments" error
Any ideas?