System.Collections.ArrayList.IListWrapper.Clear C# (CSharp) Method

Clear() public method

public Clear ( ) : void
return void
            public override void Clear()
            {
                // If _list is an array, it will support Clear method.
                // We shouldn't allow clear operation on a FixedSized ArrayList
                if (_list.IsFixedSize)
                {
                    throw new NotSupportedException(SR.NotSupported_FixedSizeCollection);
                }

                _list.Clear();
                _version++;
            }