mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
Initial .net 6 upgrades
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace SharedLibraryCore.Helpers
|
||||
{
|
||||
/// <summary>
|
||||
/// JSON converter for the build number
|
||||
/// JSON converter for the build number
|
||||
/// </summary>
|
||||
public class BuildNumberJsonConverter : JsonConverter
|
||||
{
|
||||
@ -13,7 +13,8 @@ namespace SharedLibraryCore.Helpers
|
||||
return objectType == typeof(string);
|
||||
}
|
||||
|
||||
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
|
||||
public override object ReadJson(JsonReader reader, Type objectType, object existingValue,
|
||||
JsonSerializer serializer)
|
||||
{
|
||||
return BuildNumber.Parse(reader.Value.ToString());
|
||||
}
|
||||
@ -23,4 +24,4 @@ namespace SharedLibraryCore.Helpers
|
||||
writer.WriteValue(value.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user