太卜『符玄』
Generic static factories
Hello!
The problem you have is that in the abstract record AggregateId<TId>, the implementation of the From method calls itself, resulting in infinite recursion. Specifically, TSelf.From(value) actually calls the From method of the current class instead of the concrete subclass implementation, which results in recursive calls and eventually throws a stack overflow.
13 replies