internal void CopyFrom(PeerSecurityElement source)
 {
     if (source == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("security");
     }
     this.Mode = source.Mode;
     if (source.Mode != SecurityMode.None)
     {
         this.Transport.CopyFrom(source.Transport);
     }
 }
 internal void CopyFrom(PeerSecurityElement source)
 {
     if (source == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("security");
     }
     this.Mode = source.Mode;
     if (source.Mode != SecurityMode.None)
     {
         this.Transport.CopyFrom(source.Transport);
     }
 }
 internal PeerSecuritySettings(PeerSecurityElement element)
 {
     mode = element.Mode;
     transportSecurity = new PeerTransportSecuritySettings(element.Transport);
 }