Add a code analyzer to enforce a safer implementation of the resolver Func in ITypeDataObject APIs #12609
Labels
area-Analyzers/CodeFixes
A Roslyn Analyzer is either needed for the context, needs to be scope extended or fixed.
1 Warn users against calling
Type.GetType
from the resolver Func<TypeName, Type> or resolver interface methods.2. Suggest having a hardcoded set of allowed types to avoid assembly loading and to root types to support trimming in the future
The text was updated successfully, but these errors were encountered: