mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Apply batch fixing of built-in types using var
This commit is contained in:
@ -60,7 +60,7 @@ namespace osu.Game.IO.Serialization.Converters
|
||||
if (tok["$type"] == null)
|
||||
throw new JsonException("Expected $type token.");
|
||||
|
||||
var typeName = lookupTable[(int)tok["$type"]];
|
||||
string typeName = lookupTable[(int)tok["$type"]];
|
||||
var instance = (T)Activator.CreateInstance(Type.GetType(typeName).AsNonNull());
|
||||
serializer.Populate(itemReader, instance);
|
||||
|
||||
@ -80,7 +80,7 @@ namespace osu.Game.IO.Serialization.Converters
|
||||
var type = item.GetType();
|
||||
var assemblyName = type.Assembly.GetName();
|
||||
|
||||
var typeString = $"{type.FullName}, {assemblyName.Name}";
|
||||
string typeString = $"{type.FullName}, {assemblyName.Name}";
|
||||
if (requiresTypeVersion)
|
||||
typeString += $", {assemblyName.Version}";
|
||||
|
||||
|
Reference in New Issue
Block a user