コード例 #1
0
ファイル: Account.cs プロジェクト: techotaku/v2ray-dotnet-sdk
 public void MergeFrom(Account other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.AlterId != 0)
     {
         AlterId = other.AlterId;
     }
     if (other.securitySettings_ != null)
     {
         if (securitySettings_ == null)
         {
             SecuritySettings = new global::V2Ray.Core.Common.Protocol.SecurityConfig();
         }
         SecuritySettings.MergeFrom(other.SecuritySettings);
     }
     if (other.TestsEnabled.Length != 0)
     {
         TestsEnabled = other.TestsEnabled;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }