Good afternoon,
I have an generic method like
public T GetLevelElement<T>(string name) where T : ILevelElement
{
[...]
}
Which basically performs a lookup in a db and in some cases it does not (and cannot return) a result and I would like to return null.
However that's obviously not possible because of 'There is no implicit conversion between T and null'. What should I do in this case?
-J