Use static lambdas

This commit is contained in:
cvium
2021-12-19 10:27:57 +01:00
parent cd760943a9
commit 76c2775d8c
4 changed files with 5 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ namespace Emby.Server.Implementations.Serialization
private static XmlSerializer GetSerializer(Type type)
=> _serializers.GetOrAdd(
type.FullName ?? throw new ArgumentException($"Invalid type {type}."),
(_, t) => new XmlSerializer(t),
static (_, t) => new XmlSerializer(t),
type);
/// <summary>