I'm trying to call ToDescription
method on enum which is declared as T
. Compiler won't accept this method as it doesn't know that T
is an enum.
What I want to achieve is something like this:
public string FromDtoProperty(T source)
{
return source.ToDescription();
}
Is there any way how to do this?