public ServiceCredentials Clone()
        {
            ServiceCredentials result = CloneCore();

            if (result == null || result.GetType() != this.GetType())
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.CloneNotImplementedCorrectly, this.GetType(), (result != null) ? result.ToString() : "null")));
            }
            return(result);
        }
        public ServiceCredentials Clone()
        {
            ServiceCredentials credentials = this.CloneCore();

            if ((credentials == null) || (credentials.GetType() != base.GetType()))
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(System.ServiceModel.SR.GetString("CloneNotImplementedCorrectly", new object[] { base.GetType(), (credentials != null) ? credentials.ToString() : "null" })));
            }
            return(credentials);
        }