Информация об изменениях

Сообщение error CS0305: Using the generic type 'Lazy<T>' requires 1 ty от 01.11.2021 9:55

Изменено 01.11.2021 9:58 Эйнсток Файр

error CS0305: Using the generic type 'Lazy<T>' requires 1 type arguments
Объясните, пожалуйста, смысл этой строчки:
var lazyType = typeof(Lazy<,>);

https://github.com/autofac/Autofac/blob/develop/src/Autofac/Features/LazyDependencies/LazyWithMetadataRegistrationSource.cs#L39
https://github.com/autofac/Autofac/blame/develop/src/Autofac/Features/LazyDependencies/LazyWithMetadataRegistrationSource.cs#L39

Дело в том, что компилятор даёт при её компиляции ошибку:

Features/LazyDependencies/LazyWithMetadataRegistrationSource.cs(39,35):
error CS0305: Using the generic type 'Lazy<T>' requires 1 type arguments
[./src/Autofac/Autofac.csproj]

Что он хочет мне сказать?
error CS0305: Using the generic type 'Lazy<T>' requires 1 ty
Объясните, пожалуйста, смысл этой строчки:
var lazyType = typeof(Lazy<,>);

https://github.com/autofac/Autofac/blob/develop/src/Autofac/Features/LazyDependencies/LazyWithMetadataRegistrationSource.cs#L39
https://github.com/autofac/Autofac/blame/develop/src/Autofac/Features/LazyDependencies/LazyWithMetadataRegistrationSource.cs#L39

Дело в том, что компилятор даёт при её компиляции ошибку:

Features/LazyDependencies/LazyWithMetadataRegistrationSource.cs(39,35):
error CS0305: Using the generic type 'Lazy<T>' requires 1 type arguments
[./src/Autofac/Autofac.csproj]

Что он хочет мне сказать?

Я думаю, что это он:
https://docs.microsoft.com/ru-ru/dotnet/api/system.lazy-2?view=net-5.0