mQney 2023-07-06 08:27 采纳率: 50%
浏览 19

请问C#方法定义解读

请问以下代码解读
1,在where TLogManager : class中,where什么意思,class什么意思?


  [Obsolete("Fellow Oak DICOM now supports Microsoft.Extensions.Logging")]
        public static IServiceCollection AddLogManager<TLogManager>(this IServiceCollection services) where TLogManager : class, ILogManager;
  • 写回答

4条回答 默认 最新

  • 於黾 2023-07-06 08:45
    关注

    where是用来约束类型的,后面class, ILogManager就是泛型TLogManager的类型

    评论

报告相同问题?

问题事件

  • 创建了问题 7月6日