Suppress generic constraint exceptions in GetPublicNoArgExtensionMethods
Suppress generic constraint exceptions in GetPublicNoArgExtensionMethods

GetPublicNoArgExtensionMethods tries to instantiate arbitrary generic methods with arbitrary type arguments, which can fail if those arguments don't meet any constraints defined on the generic parameters. Automapper isn't doing the required checking for constraint validation today, resulting in exceptions escaping; multiple existing Automapper unit tests fail on .NET 7 as a result.  This works around it by eating the ArgumentException that comes from MakeGenericMethod (there's no exposed compatibility-checking function, and so while not usually recommended, the most reliable thing here is to simply catch the errors stemming from the validation MakeGenericMethod performs).

AutoMapper/AutoMapper,AutoMapper/AutoMapper