3 ms·
I find structural typing is mostly necessary when someone messed up and used a class where an interface should have been used. I'm now currently in the positio
by contravariant 7y ago
I find structural typing is mostly necessary when someone messed up and used a class where an interface should have been used.
I'm now currently in the position of having to decide whether it's better to accept defeat or use T4 or similar to write the 1000+ line wrapper class to undo the mistake... You'd think Microsoft would at least remember to do dependency inversion through interfaces in their own C# code.
- LeonB 7y agoI wrote a tool, NimbleText which is free and good and lightweight for these one off 1000-line code generation scenarios. See https://nimbletext.com/live https://nimbletext.com/live or email me for help (support at nimbletext)