public TFTPServerConfiguration Clone() { TFTPServerConfiguration result = new TFTPServerConfiguration(); result.Name = Name; result.EndPoint = EndPoint.Clone(); result.SinglePort = SinglePort; result.Ttl = Ttl; result.DontFragment = DontFragment; result.RootPath = RootPath; result.AutoCreateDirectories = AutoCreateDirectories; result.AllowRead = AllowRead; result.AllowWrite = AllowWrite; result.Timeout = Timeout; result.Retries = Retries; result.ConvertPathSeparator = ConvertPathSeparator; result.WindowSize = WindowSize; if (Alternatives != null) { result.Alternatives = new BindingList <ConfigurationAlternative>(); foreach (ConfigurationAlternative alternative in Alternatives) { result.Alternatives.Add(alternative.Clone()); } } return(result); }