Skip to content

Consider annotations for generic arguments #110239

@kant2002

Description

@kant2002

Consider this configuration

internal List<Type> InterceptorProviders { get; } = [typeof(Server.Interceptors.ServerSide.RevalidatingInterceptor)];

And the code whcih use this configuration

foreach (Type interceptorType in config.DataPortalOptions.DataPortalServerOptions.InterceptorProviders)
{
  services.AddScoped(typeof(IInterceptDataPortal), interceptorType);
}

There no way how I can say that List of Types will contain only types with specific DAM properties. I think having that would still be statically analyzeable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-Tools-ILLink.NET linker development as well as trimming analyzers

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions