Microsoft.ManagementConsole.BaseCollection.ThrowArgumentExceptionIfDuplicate C# (CSharp) Method

ThrowArgumentExceptionIfDuplicate() private method

private ThrowArgumentExceptionIfDuplicate ( object value ) : void
value object
return void
        internal void ThrowArgumentExceptionIfDuplicate(object value)
        {
            if (base.List.Contains(value))
            {
                throw new ArgumentException(Microsoft.ManagementConsole.Internal.Utility.LoadResourceString(Microsoft.ManagementConsole.Internal.Strings.ArgumentExceptionItemInCollection));
            }
        }