Fixing C# reflection which was broken by upgrade to .NET 6
The code that was broken by .NET 6 upgrade
This code was in a .NET Core 3.1 app and was working fine:
public void GetTranslation(Type translationType)
{
// lots of code skipped
var firstOrDefaultMethod = typeof(Enumerable).GetMethods().First...
techblog.timhilton.xyz2 min read