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 ret = CloneCore();

            if (ret.GetType() != GetType())
            {
                throw new NotImplementedException("CloneCore() must be implemented to return an instance of the same type in this custom ServiceCredentials type.");
            }
            return(ret);
        }
        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);
        }