AcManager.Tools.Helpers.Api.Kunos.ServerInformation.DeserializeSafe C# (CSharp) Méthode

DeserializeSafe() public static méthode

public static DeserializeSafe ( Stream stream ) : AcManager.Tools.Helpers.Api.Kunos.ServerInformation[]
stream Stream
Résultat AcManager.Tools.Helpers.Api.Kunos.ServerInformation[]
        public static ServerInformation[] DeserializeSafe(Stream stream) {
            try {
                return Deserialize(stream);
            } catch (Exception e) {
                Logging.Warning(e);
                return JsonConvert.DeserializeObject<ServerInformation[]>(stream.ReadAsString());
            }
        }