I have a general method, for example:
public T GetLevelElement<T>(string name) where T : ILevelElement {
Which basically searches in db, and in some cases it does not return the result (and does not return), and I would like to return null.
However, this is obviously not possible due to "There is no implicit conversion between T and null." What should I do in this case?
JΓΆrg B.
source share