Fix IDE0053

This commit is contained in:
RoosterDragon
2023-03-04 19:21:09 +00:00
committed by Pavel Penev
parent 37afd6094e
commit 939f715e3c
28 changed files with 41 additions and 91 deletions

View File

@@ -56,14 +56,10 @@ namespace OpenRA
}
public static Func<string, Type, string, object> InvalidValueAction = (s, t, f) =>
{
throw new YamlException($"FieldLoader: Cannot parse `{s}` into `{f}.{t}` ");
};
public static Action<string, Type> UnknownFieldAction = (s, f) =>
{
throw new NotImplementedException($"FieldLoader: Missing field `{s}` on `{f.Name}`");
};
static readonly ConcurrentCache<Type, FieldLoadInfo[]> TypeLoadInfo =
new ConcurrentCache<Type, FieldLoadInfo[]>(BuildTypeLoadInfo);