Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have an Example-pattern implementation bellow.that would have great value to override the T. This is of course not possible today, but if it could be done it would open up new possibilities.
The base class example:
`public abstract class BaseClass where T is BaseEntity //Ef-model containing id etc.
{
public virtual Result MyResult { get; set; } //I want to return T normally
public T DoSomeGeneralStuffs() => return default T; //The reason of exists
}`
The implementation:
public MyClass : BaseClass<User> { public override Result<UserDto> User => new Result<UserDto>(); }
It is just a simple example of the wanted behaviour, I do not request for a work around or solution to this :)
Beta Was this translation helpful? Give feedback.
All reactions