关于[Calling Generic Methods from Non-Generic Code in .Net]的摘要:
Somewhat often (or at least it feels that way this week) I’ll run into the need to call a method with a generic type argument from code that isn’t generic. To make that concrete, here’s an example from Marten. The main IDocumentSession service has a method called Store() that directs Marten to persist one or more documents of the same type. That method has this signature...
原文地址: https://jeremydmiller.com/2020/07/27/calling-generic-methods-from-non-generic-code-in-net/