I get the following compile time error from the code below: Error 1 The type arguments for method 'CompSchemaEngineV2.NullableDataReader.GetNullable
I can't figure out whats causing it. I've tried everything I and my friends can think of and I can't get it to work. Suggestions?
public int GetInt32(int index)
{
return sqlReader.GetInt32(index);
}
public Nullable<int> GetNullableInt32(int index)
{
return GetNullable(index, GetInt32); //This line throws the error
}
private delegate T Conversion
private Nullable
Conversion
{
Nullable
{
nullable = null;
}
else
{
nullable = convert(ordinal);
}
return nullable;
}
Replies
Know the answer? Post it — somebody with the same question will find it here.