Hello! I’m a Husband, Father, Movember & Liverpool Fan, Software Engineer, Constant Learner & Team Leader. I live in Wisconsin, work for Catalyst and spend my days trying to balance all of the above.
I just meant what you just said : A earth shattering solution. Did not meant as an offense. I'm glad this kind of article exists because I've seen a lot of dev not taking this into account, so thank you!
BTW; I don't think SourceGenerators are meant for this, although we could achieve this by generating a property with the interface you created there, but it would go against constructor injection.
I never used Source Generators, could be interesting to dig into this (Found a "cookbook").
Hello! I’m a Husband, Father, Movember & Liverpool Fan, Software Engineer, Constant Learner & Team Leader. I live in Wisconsin, work for Catalyst and spend my days trying to balance all of the above.
Haha just read my comment back, reads a little snarky to me....sorry about that.
As for source generators, your comment got me thinking about how I could use them. Pretty sure they wouldn't work well for something like this but loads of other applications. Thanks for making me ponder something new!!!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Yeah sorry, not everything is earth shattering. I'm interested in your source generators solution though.
I just meant what you just said : A earth shattering solution. Did not meant as an offense. I'm glad this kind of article exists because I've seen a lot of dev not taking this into account, so thank you!
BTW; I don't think SourceGenerators are meant for this, although we could achieve this by generating a property with the interface you created there, but it would go against constructor injection.
I never used Source Generators, could be interesting to dig into this (Found a "cookbook").
Haha just read my comment back, reads a little snarky to me....sorry about that.
As for source generators, your comment got me thinking about how I could use them. Pretty sure they wouldn't work well for something like this but loads of other applications. Thanks for making me ponder something new!!!