mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-26 06:28:35 +01:00
made AddJsonConverter not require the generic type
This commit is contained in:
parent
c7ac35e74c
commit
b38999a50c
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ namespace MLEM.Data {
|
||||||
return serializer;
|
return serializer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void AddJsonConverter<T>(this ContentManager content, JsonConverter<T> converter) {
|
public static void AddJsonConverter(this ContentManager content, JsonConverter converter) {
|
||||||
var serializer = GetJsonSerializer(content);
|
var serializer = GetJsonSerializer(content);
|
||||||
serializer.Converters.Add(converter);
|
serializer.Converters.Add(converter);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue