你的位置: 码友网首页 / 资讯源列表 / Calling Generic Methods from Non-Generic Code in .Net

关于[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/

收录时间: 2020-07-28 浏览量: 1948 分类: .NET

| 0 收藏 | 0