Open
Description
Currently, the API return value type is IEnumerable<object?>
while the API implementation is returning IEnumerable<object>
see
so should we update the API return value type to IEnumerable<object>
to align with the method return value type?
namespace Microsoft.Extensions.DependencyInjection;
public static class ServiceProviderServiceExtensions
{
- public static IEnumerable<object?> GetServices(this IServiceProvider provider, Type serviceType);
+ public static IEnumerable<object> GetServices(this IServiceProvider provider, Type serviceType);
}