Calling Generic Methods from Non-Generic Code in .Net

added by DotNetKicks
7/27/2020 5:19:25 PM

609 Views

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...


0 comments