在C#中"这是什么"在方法声明的参数类型之前声明是什么意思?

时间:2017-12-21 14:38:21

标签: c# asp.net asp.net-core

我正在阅读EntityFramework Core Code on Github并且我不明白下面使用了这个(documentation):

    public static IServiceCollection AddDbContext<TContext>(
        [NotNull] this IServiceCollection serviceCollection,
        ServiceLifetime contextLifetime)
        where TContext : DbContext
        => AddDbContext<TContext>(serviceCollection, (Action<IServiceProvider, DbContextOptionsBuilder>)null, contextLifetime);

0 个答案:

没有答案