System.ServiceModel.Security.UserNamePasswordServiceCredential.ThrowIfImmutable C# (CSharp) Method

ThrowIfImmutable() private method

private ThrowIfImmutable ( ) : void
return void
        void ThrowIfImmutable()
        {
            if (this.isReadOnly)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly)));
            }
        }
    }