in src/Microsoft.VisualStudio.Validation/PrivateErrorHelpers.cs [23:34]
internal static Type TrimGenericWrapper(Type type, Type? wrapper)
{
Type[] typeArgs;
if (type.GetTypeInfo().IsGenericType && type.GetGenericTypeDefinition() == wrapper && (typeArgs = type.GenericTypeArguments).Length == 1)
{
return typeArgs[0];
}
else
{
return type;
}
}