Enable Nullable

This commit is contained in:
ChsBuffer
2021-02-26 16:10:30 +08:00
parent 6d4e12a6f2
commit dd5dee02c5
71 changed files with 582 additions and 732 deletions

View File

@@ -1,14 +1,15 @@
using System.Collections.Generic;
#nullable disable
using System.Collections.Generic;
namespace Netch.Servers.V2ray.Models
{
public class V2rayConfig
{
public List<Inbounds> inbounds { get; set; }
public List<Inbounds> inbounds { get; } = new();
public List<Outbounds> outbounds { get; set; }
public List<Outbounds> outbounds { get; } = new();
public Routing routing { get; set; }
public Routing routing { get; } = new();
}
public class Inbounds
@@ -160,7 +161,7 @@ namespace Netch.Servers.V2ray.Models
{
public string domainStrategy { get; set; }
public List<RulesItem> rules { get; set; }
public List<RulesItem> rules { get; } = new();
}
public class StreamSettings