mirror of
				https://github.com/lantean-code/qbtmud.git
				synced 2025-11-03 21:43:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			590 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			590 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using Lantean.QBitTorrentClient.Converters;
 | 
						|
using System.Text.Json;
 | 
						|
using System.Text.Json.Serialization;
 | 
						|
 | 
						|
namespace Lantean.QBitTorrentClient
 | 
						|
{
 | 
						|
    public static class SerializerOptions
 | 
						|
    {
 | 
						|
        public static JsonSerializerOptions Options { get; }
 | 
						|
 | 
						|
        static SerializerOptions()
 | 
						|
        {
 | 
						|
            Options = new JsonSerializerOptions();
 | 
						|
            Options.Converters.Add(new StringFloatJsonConverter());
 | 
						|
            Options.Converters.Add(new SaveLocationJsonConverter());
 | 
						|
            Options.DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull;
 | 
						|
        }
 | 
						|
    }
 | 
						|
} |