LogoLogo
HomeNewsSupportVideos
v2.5
v2.5
  • Welcome
  • What's New
  • Releases
  • Concepts
  • Themes
  • Extensions
  • Wisej.Web
    • General
      • Application
        • Application.FormCollection
        • Application.PageCollection
        • HashChangedEventArgs
        • HashChangedEventHandler
        • LicenseErrorEventArgs
        • LicenseErrorEventHandler
        • ResponsiveProfileChangedEventArgs
        • ResponsiveProfileChangedEventHandler
      • Clipboard
      • Component
      • Control
        • Control.ControlCollection
        • ControlEventArgs
        • ControlEventHandler
        • DragEventArgs
        • DragEventHandler
        • HelpEventArgs
        • HelpEventHandler
        • KeyEventArgs
        • KeyEventHandler
        • KeyPressEventArgs
        • KeyPressEventHandler
        • LayoutEventArgs
        • LayoutEventHandler
        • MouseEventArgs
        • MouseEventHandler
        • PaintEventArgs
        • PaintEventHandler
        • PinchEventArgs
        • PinchEventHandler
        • PreviewKeyDownEventArgs
        • PreviewKeyDownEventHandler
        • QueryContinueDragEventArgs
        • QueryContinueDragEventHandler
        • ResponsiveProfileChangedEventArgs
        • ResponsiveProfileChangedEventHandler
        • RotateEventArgs
        • RotateEventHandler
        • SwipeEventArgs
        • SwipeEventHandler
        • TouchEventArgs
        • TouchEventHandler
        • TrackEventArgs
        • TrackEventHandler
        • WidgetEventArgs
        • WidgetEventHandler
      • Cursor
      • Cursors
      • DataObject
      • Padding
      • Screen
    • Buttons
      • Button
        • MenuButtonItemClickedEventArgs
        • MenuButtonItemClickedEventHandler
      • ButtonBase
      • CheckBox
      • RadioButton
      • SplitButton
    • Common Dialogs
      • ColorDialog
      • CommonDialog
      • FileDialog
      • FileDialogLoadPathEventArgs
      • FileDialogLoadPathEventHandler
      • FileDialogRootCollection
      • FileDialogUI
      • FolderBrowserDialog
      • FolderBrowserDialogUI
      • OpenFileDialog
      • SaveFileDialog
    • Containers
      • Accordion
        • AccordionAction
        • AccordionCancelEventArgs
        • AccordionCancelEventHandler
        • AccordionEventArgs
        • AccordionEventHandler
        • AccordionPanel
      • ContainerControl
        • AcceleratorEventArgs
        • AcceleratorEventHandler
      • DataRepeater
        • DataRepeaterAddRemoveItemsCancelEventArgs
        • DataRepeaterAddRemoveItemsCancelEventHandler
        • DataRepeaterAddRemoveItemsEventArgs
        • DataRepeaterAddRemoveItemsEventHandler
        • DataRepeaterDataErrorEventArgs
        • DataRepeaterDataErrorEventHandler
        • DataRepeaterItem
        • DataRepeaterItemCloneEventHandler
        • DataRepeaterItemEventArgs
        • DataRepeaterItemEventHandler
        • DataRepeaterItemValueEventArgs
        • DataRepeaterItemValueEventHandler
        • DataRepeaterLayoutStyles
      • Desktop
        • DesktopTaskBarItem
        • DesktopTaskBarItemClickEventArgs
        • DesktopTaskBarItemClickEventHandler
        • DesktopTaskBarItemCollection
        • DesktopTaskBarItemControl
        • DesktopTaskBarItemDateTime
      • FlexLayoutPanel
        • FlexLayoutStyle
      • FlowLayoutPanel
        • FlowDirection
      • Form
        • CloseReason
        • FormBorderStyle
        • FormClosedEventArgs
        • FormClosedEventHandler
        • FormClosingEventArgs
        • FormClosingEventHandler
        • FormStartPosition
        • FormWindowState
        • MdiClient
        • MdiTabProperties
      • GroupBox
      • Page
      • Panel
      • ScrollableControl
        • ScrollEventArgs
        • ScrollEventHandler
      • SlideBar
      • SplitContainer
        • FixedPanel
        • SplitterCancelEventArgs
        • SplitterCancelEventHandler
        • SplitterEventArgs
        • SplitterEventHandler
        • SplitterPanel
      • StatusBar
        • StatusBarControl
        • StatusBarPanel
        • StatusBarPanelAutoSize
        • StatusBarPanelBorderStyle
        • StatusBarPanelClickEventArgs
        • StatusBarPanelClickEventHandler
      • TabControl
        • TabAlignment
        • TabControlAction
        • TabControlCancelEventArgs
        • TabControlCancelEventHandler
        • TabControlEventArgs
        • TabControlEventHandler
        • TabPage
        • TabSizeMode
      • TableLayoutPanel
        • ColumnStyle
        • RowStyle
        • TableLayoutColumnStyleCollection
        • TableLayoutPanelGrowStyle
        • TableLayoutRowStyleCollection
        • TableLayoutSettings
        • TableLayoutStyle
        • TableLayoutStyleCollection
      • ToolBar
        • ToolBar.ToolBarButtonCollection
        • ToolBarButton
        • ToolBarButtonClickEventArgs
        • ToolBarButtonClickEventHandler
        • ToolBarButtonSizeMode
        • ToolBarButtonStyle
        • ToolBarTextAlign
      • UserControl
      • UserPopup
    • Content
      • AspNetPanel
      • Canvas
      • HtmlPanel
        • HtmlPanelElementClickArgs
        • HtmlPanelElementClickHandler
      • IFramePanel
      • ImageList
        • ImageList.ImageCollection
      • Label
      • Line
      • LinkLabel
        • LinkArea
        • LinkLabelLinkClickedEventArgs
        • LinkLabelLinkClickedEventHandler
      • PdfViewer
      • PictureBox
      • ProgressBar
      • ScrollBar
        • HScrollBar
        • HScrollProperties
        • ScrollEventArgs
        • ScrollEventHandler
        • ScrollProperties
        • VScrollBar
        • VScrollProperties
      • Shape
      • Spacer
      • Upload
        • CaptureMode
        • UploadedEventArgs
        • UploadedEventHandler
        • UploadErrorEventArgs
        • UploadErrorEventHandler
        • UploadErrorType
        • UploadingEventArgs
        • UploadingEventHandler
        • UploadProgressEventArgs
        • UploadProgressEventHandler
      • WebBrowser
        • WebBrowserDocumentCompletedEventArgs
        • WebBrowserDocumentCompletedEventHandler
      • Widget
        • WebRequestEventArgs
        • WebRequestHandler
    • Data Binding
      • Binding
      • BindingCompleteContext
      • BindingCompleteEventArgs
      • BindingCompleteEventHandler
      • BindingCompleteState
      • BindingContext
      • BindingManagerBase
      • BindingManagerDataErrorEventArgs
      • BindingManagerDataErrorEventHandler
      • BindingMemberInfo
      • BindingNavigator
      • BindingsCollection
      • BindingSource
      • ControlBindingsCollection
      • ControlUpdateMode
      • ConvertEventArgs
      • ConvertEventHandler
      • CurrencyManager
      • DataSourceUpdateMode
      • IBindableComponent
      • ICurrencyManagerProvider
      • ItemChangedEventArgs
      • ItemChangedEventHandler
      • ListBindingConverter
      • ListBindingHelper
      • PropertyManager
    • Editors
      • CharacterCasing
      • ComponentTool
      • ComponentToolCollection
      • DateTimePicker
      • DomainUpDown
      • InputType
      • LabelWrapper
      • MaskedTextBox
      • MonthCalendar
        • DateRangeEventArgs
        • DateRangeEventHandler
        • SelectionRange
      • NumericUpDown
      • TagTextBox
        • TagTextBoxEventArgs
        • TagTextBoxEventHandler
        • TagTextBoxMousEventArgs
        • TagTextBoxMousEventHandler
        • TagTextBoxRenderEventArgs
        • TagTextBoxRenderEventHandler
      • TextBox
      • TextBoxBase
      • TextBoxMode
      • TextBoxType
      • TimeUpDown
        • TimeUpDownFormat
      • TrackBar
      • UpDownBase
    • Enumerations
      • AccessibleRole
      • AnchorStyles
      • Appearance
      • AutoComplete
      • AutoCompleteMode
      • AutoScaleMode
      • AutoSizeMode
      • AutoValidate
      • BorderStyle
      • BoundsSpecified
      • CheckState
      • ColorDepth
      • ComboBoxStyle
      • ControlStyles
      • DataFormats
      • DataFormats.Format
      • DateTimePickerFormat
      • Day
      • DialogResult
      • Display
      • DockStyle
      • DragAction
      • DragDropEffects
      • GetChildAtPointSkip
      • HeaderPosition
      • HorizontalAlignment
      • ImageLayout
      • ImagePosition
      • ImeMode
      • Keys
      • LabelPosition
      • LeftRightAlignment
      • LineStyle
      • LinkBehavior
      • MaskFormat
      • MouseButtons
      • ObjectFit
      • Orientation
      • PanelAutoShowMode
      • PictureBoxSizeMode
      • Placement
      • PlacementMode
      • Position
      • RightToLeft
      • ScrollBars
      • ScrollEventType
      • ScrollOrientation
      • SelectionMode
      • Shortcut
      • SizeType
      • SortOrder
      • TabOrderManagerDirection
      • TextDataFormat
      • TextImageRelation
      • TickStyle
      • ValidationConstraints
      • VerticalAlignment
    • Extenders
      • Animation
        • AnimationEventArgs
        • AnimationEventHandler
      • ErrorAnimationType
      • ErrorBlinkStyle
      • ErrorIconAlignment
      • ErrorProvider
      • HelpTip
      • JavaScript
      • Rotation
      • StyleSheet
      • TabOrderManager
      • ToolTip
      • ToolTipIcon
    • Interfaces
      • IButtonControl
      • IContainerControl
      • IDataObject
    • Lists & Grids
      • CheckedListBox
        • ItemCheckEventArgs
        • ItemCheckEventHandler
      • ComboBox
      • DataGridView
        • BaseCollection
        • DataGridView.HitTestInfo
        • DataGridView.HitTestType
        • DataGridViewAutoSizeColumnMode
        • DataGridViewAutoSizeColumnsMode
        • DataGridViewAutoSizeRowMode
        • DataGridViewAutoSizeRowsMode
        • DataGridViewBand
        • DataGridViewBindingCompleteEventArgs
        • DataGridViewBindingCompleteEventHandler
        • DataGridViewButtonCell
        • DataGridViewButtonColumn
        • DataGridViewCell
        • DataGridViewCellBorderStyle
        • DataGridViewCellCancelEventArgs
        • DataGridViewCellCancelEventHandler
        • DataGridViewCellCollection
        • DataGridViewCellContextMenuNeededEventArgs
        • DataGridViewCellContextMenuNeededEventHandler
        • DataGridViewCellErrorTextNeededEventArgs
        • DataGridViewCellErrorTextNeededEventHandler
        • DataGridViewCellEventArgs
        • DataGridViewCellEventHandler
        • DataGridViewCellFormattingEventArgs
        • DataGridViewCellFormattingEventHandler
        • DataGridViewCellMouseEventArgs
        • DataGridViewCellMouseEventHandler
        • DataGridViewCellPaintEventArgs
        • DataGridViewCellPaintEventHandler
        • DataGridViewCellParsingEventArgs
        • DataGridViewCellParsingEventHandler
        • DataGridViewCellStateChangedEventArgs
        • DataGridViewCellStateChangedEventHandler
        • DataGridViewCellStyle
        • DataGridViewCellStyleContentChangedEventArgs
        • DataGridViewCellStyleContentChangedEventHandler
        • DataGridViewCellStyleScopes
        • DataGridViewCellToolTipTextNeededEventArgs
        • DataGridViewCellToolTipTextNeededEventHandler
        • DataGridViewCellValidatingEventArgs
        • DataGridViewCellValidatingEventHandler
        • DataGridViewCellValueEventArgs
        • DataGridViewCellValueEventHandler
        • DataGridViewCheckBoxCell
        • DataGridViewCheckBoxColumn
        • DataGridViewChildRowCollection
        • DataGridViewClipboardCopyMode
        • DataGridViewCollectionChangeEventArgs
        • DataGridViewColumn
        • DataGridViewColumnCollection
        • DataGridViewColumnEventArgs
        • DataGridViewColumnEventHandler
        • DataGridViewColumnHeaderCell
        • DataGridViewColumnHeadersHeightSizeMode
        • DataGridViewColumnSortMode
        • DataGridViewColumnsSortMode
        • DataGridViewColumnStateChangedEventArgs
        • DataGridViewColumnStateChangedEventHandler
        • DataGridViewComboBoxCell
        • DataGridViewComboBoxColumn
        • DataGridViewComboBoxEditingControl
        • DataGridViewContentAlignment
        • DataGridViewDataErrorEventArgs
        • DataGridViewDataErrorEventHandler
        • DataGridViewDataReadEventHandler
        • DataGridViewDataUpdatedEventArgs
        • DataGridViewDataUpdatedEventHandler
        • DataGridViewDateTimePickerCell
        • DataGridViewDateTimePickerColumn
        • DataGridViewDateTimePickerEditingControl
        • DataGridViewEditingControlShowingEventArgs
        • DataGridViewEditingControlShowingEventHandler
        • DataGridViewEditMode
        • DataGridViewElement
        • DataGridViewElementStates
        • DataGridViewHeaderCell
        • DataGridViewImageCell
        • DataGridViewImageCellLayout
        • DataGridViewImageColumn
        • DataGridViewLinkCell
        • DataGridViewLinkColumn
        • DataGridViewMaskedTextBoxCell
        • DataGridViewMaskedTextBoxColumn
        • DataGridViewMaskedTextBoxEditingControl
        • DataGridViewNumericUpDownCell
        • DataGridViewNumericUpDownColumn
        • DataGridViewNumericUpDownEditingControl
        • DataGridViewRow
        • DataGridViewRowCancelEventArgs
        • DataGridViewRowCancelEventHandler
        • DataGridViewRowCollection
        • DataGridViewRowErrorTextNeededEventArgs
        • DataGridViewRowErrorTextNeededEventHandler
        • DataGridViewRowEventArgs
        • DataGridViewRowEventHandler
        • DataGridViewRowHeaderCell
        • DataGridViewRowHeadersWidthSizeMode
        • DataGridViewRowHeightInfoNeededEventArgs
        • DataGridViewRowHeightInfoNeededEventHandler
        • DataGridViewRowsAddedEventArgs
        • DataGridViewRowsAddedEventHandler
        • DataGridViewRowsRemovedEventArgs
        • DataGridViewRowsRemovedEventHandler
        • DataGridViewRowStateChangedEventArgs
        • DataGridViewRowStateChangedEventHandler
        • DataGridViewSelectedCellCollection
        • DataGridViewSelectedColumnCollection
        • DataGridViewSelectedRowCollection
        • DataGridViewSelectionMode
        • DataGridViewSortCompareEventArgs
        • DataGridViewSortCompareEventHandler
        • DataGridViewSortSelectionMode
        • DataGridViewTextBoxCell
        • DataGridViewTextBoxColumn
        • DataGridViewTextBoxEditingControl
        • DataGridViewToolClickEventHandler
        • DataGridViewTriState
        • IDataGridViewEditingControl
        • InputType
        • ScrollEventArgs
        • ScrollEventHandler
        • TextBoxMode
        • TextBoxType
      • ListBox
      • ListControl
        • ListControlConvertEventArgs
        • ListControlConvertEventHandler
      • ListView
        • CacheVirtualItemsEventArgs
        • CacheVirtualItemsEventHandler
        • ColumnClickEventArgs
        • ColumnClickEventHandler
        • ColumnHeader
        • ColumnHeaderAutoResizeStyle
        • ColumnHeaderStyle
        • ColumnReorderedEventArgs
        • ColumnReorderedEventHandler
        • ColumnWidthChangedEventArgs
        • ColumnWidthChangedEventHandler
        • GridLineStyle
        • ImageColumnHeader
        • ItemCheckedEventArgs
        • ItemCheckedEventHandler
        • ItemClickEventArgs
        • ItemClickEventHandler
        • ItemMouseHoverEventArgs
        • ItemMouseHoverEventHandler
        • ItemSelectionChangedEventArgs
        • ItemSelectionChangedEventHandler
        • LabelEditEventArgs
        • LabelEditEventHandler
        • ListView.CheckedIndexCollection
        • ListView.CheckedListViewItemCollection
        • ListView.ColumnHeaderCollection
        • ListView.ListViewItemCollection
        • ListView.SelectedIndexCollection
        • ListView.SelectedListViewItemCollection
        • ListViewBindingCompleteEventArgs
        • ListViewBindingCompleteEventEventHandler
        • ListViewDataUpdatedEventArgs
        • ListViewDataUpdatedEventHandler
        • ListViewItem
        • ListViewItem.ListViewSubItem
        • ListViewItem.ListViewSubItemCollection
        • ListViewItemDragEventArgs
        • ListViewItemDragEventHandler
        • ListViewItemStates
        • ListViewVirtualItemsSelectionRangeChangedEventArgs
        • ListViewVirtualItemsSelectionRangeChangedEventHandler
        • RetrieveVirtualItemEventArgs
        • RetrieveVirtualItemEventHandler
        • SearchForVirtualItemEventArgs
        • SearchForVirtualItemEventHandler
        • View
      • ListViewComboBox
      • PropertyGrid
        • GridItem
        • GridItemCollection
        • GridItemType
        • PropertySort
        • PropertyValueChangedEventArgs
        • PropertyValueChangedEventHandler
        • PropertyValueDataErrorEventArgs
        • PropertyValueDataErrorEventHandler
        • PropertyValueFormattingEventArgs
        • PropertyValueFormattingEventHandler
        • SelectedGridItemBeginEditEventArgs
        • SelectedGridItemBeginEditEventHandler
        • SelectedGridItemChangedEventArgs
        • SelectedGridItemChangedEventHandler
        • SelectedGridItemEndEditEventArgs
        • SelectedGridItemEndEditEventHandler
      • TreeView
        • ItemDragEventArgs
        • ItemDragEventHandler
        • NodeLabelEditEventArgs
        • NodeLabelEditEventHandler
        • TreeNode
        • TreeNodeCollection
        • TreeNodeMouseClickEventArgs
        • TreeNodeMouseClickEventHandler
        • TreeNodeMouseHoverEventArgs
        • TreeNodeMouseHoverEventHandler
        • TreeViewAction
        • TreeViewCancelEventArgs
        • TreeViewCancelEventHandler
        • TreeViewEventArgs
        • TreeViewEventHandler
        • TreeViewNodeDragEventArgs
        • TreeViewNodeDragEventHandler
      • TreeViewComboBox
      • UserComboBox
    • Media
      • Audio
      • FlashPlayer
      • Media
      • Video
    • Menus
      • CheckedMenuItem
      • ContextMenu
      • LinkMenuItem
      • MainMenu
      • Menu
      • Menu.MenuItemCollection
      • MenuBar
      • MenuItem
      • MenuItemEventArgs
      • MenuItemEventHandler
      • MenuItemSizeMode
      • MenuMerge
    • Notifications
      • AlertBox
        • MessageBoxIcon
      • MessageBox
        • MessageBoxButtons
        • MessageBoxDefaultButton
        • MessageBoxIcon
      • Toast
    • Other Components
      • Timer
  • Wisej.Base
    • General
      • Component
      • Cookie
      • CookieCollection
      • PostbackPropertyAttribute
      • TextUtils
    • Responsive
      • ResponsiveProfile
      • ResponsiveProfileCollection
      • ResponsivePropertyAttribute
  • Wisej.Core
    • General
      • BrowserStorage
      • ClientBrowser
      • ClientProfile
      • ClientTheme
      • CookieStorage
      • FileSystemProvider
      • HealthCheck
      • IEventFilter
      • IFileSystemProvider
      • LocalStorage
      • MimeTypes
      • SessionStorage
      • SynchronizedLinkedList<T>
      • SynchronizedList<T>
      • WebMethodAttribute
      • WisejEventArgs
        • WisejEventArgs.KeyboardInfo
        • WisejEventArgs.PointerInfo
      • WisejResourcesAttribute
      • WisejSerializer
      • WisejSerializerOptions
    • Interfaces
      • IWisejComponent
      • IWisejControl
      • IWisejDataStore
      • IWisejEditorService
      • IWisejExtenderProvider
      • IWisejHandler
      • IWisejSerializable
      • IWisejWindow
  • Wisej.Web.VisualBasic
    • Extensions
      • Interaction
      • MsgBoxResult
      • MsgBoxStyle
  • System
    • Extensions
      • DateTimeExtensions
      • FontExtensions
      • JSON
      • StringExtensions
Powered by GitBook
On this page
  • Parameters
  • Constructors
  • SynchronizedList(capacity, collection, syncLock)
  • Properties
  • Count
  • Item(index)
  • SyncRoot
  • Methods
  • Add(item)
  • AddRange(collection)
  • BinarySearch(item)
  • BinarySearch(item, comparer)
  • Clear()
  • Contains(item)
  • CopyTo(array, index)
  • Find(match)
  • Find(startIndex, match)
  • FindAll(match)
  • FindIndex(match)
  • FindIndex(startIndex, match)
  • FindIndex(startIndex, count, match)
  • FindLast(match)
  • FindLast(startIndex, match)
  • FindLastIndex(match)
  • FindLastIndex(startIndex, match)
  • ForEach(action)
  • GetEnumerator()
  • IndexOf(item)
  • Insert(index, item)
  • InsertRange(index, collection)
  • Remove(item)
  • RemoveAll(match)
  • RemoveAt(index)
  • Sort()
  • Sort(comparer)
  • Sort(comparison)
  • Sort(comparer, swapCallback)
  • Sum(selector)
  • Sum(selector)
  • Sum(selector)
  • Sum(selector)
  • Sum(selector)
  • ToArray()
  • TrimExcess()

Was this helpful?

Export as PDF
  1. Wisej.Core
  2. General

SynchronizedList<T>

Wisej.Core.SynchronizedList<T>

Last updated 2 years ago

Was this helpful?

Namespace: Wisej.Core

Assembly: Wisej.Framework (2.5.0.0)

Provides a thread-safe collection that contains objects of a type specified by the generic parameter as elements.

public class SynchronizedList<T> : IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable, IList, ICollection
Public Class SynchronizedList(Of T)
    Inherits IList(Of T)
    Implements ICollection(Of T), IEnumerable(Of T), IEnumerable, IList, ICollection

Parameters

Name
Description

T

The type of object contained as items in the thread-safe collection.

Constructors

SynchronizedList(capacity, collection, syncLock)

Initializes a new instance of the class that contains elements copied from the specified collection and has sufficient capacity to accommodate the number of elements copied and uses the specified syncLock object to synchronize its internal operations.

Name
Type
Description

capacity

The optional number of element that the list can initially store.

collection

The optional collection whose elements are copied to the new list.

syncLock

The optional lock reference.

Properties

Count

Throws:

Methods

Adds an item to the thread-safe collection.

Parameter
Type
Description

item

The element to be added to the collection.

Parameter
Type
Description

collection

Throws:

Parameter
Type
Description

item

The object to locate. The value can be null for reference types.

Throws:

Parameter
Type
Description

item

The object to locate. The value can be null for reference types.

comparer

Throws:

Removes all items from the collection.

Determines whether the collection contains an element with a specific value.

Parameter
Type
Description

item

The object to locate in the collection.

Copies the elements of the collection to a specified array, starting at a particular index.

Parameter
Type
Description

array

index

The zero-based index in the array at which copying begins.

Parameter
Type
Description

match

Throws:

Parameter
Type
Description

startIndex

The zero-based starting index of the search.

match

Throws:

Retrieves all the elements that match the conditions defined by the specified predicate.

Parameter
Type
Description

match

Throws:

Parameter
Type
Description

match

Throws:

Parameter
Type
Description

startIndex

The zero-based starting index of the search.

match

Throws:

Parameter
Type
Description

startIndex

The zero-based starting index of the search.

count

The number of elements in the section to search.

match

Throws:

Parameter
Type
Description

match

Throws:

Parameter
Type
Description

startIndex

The zero-based starting index of the search.

match

Throws:

Parameter
Type
Description

match

Throws:

Parameter
Type
Description

startIndex

The zero-based starting index of the search.

match

Throws:

Parameter
Type
Description

action

Throws:

Returns an enumerator that iterates through the synchronized collection.

Returns the index of the first occurrence of a value in the collection.

Parameter
Type
Description

item

Removes all items from the collection.

Inserts an item into the collection at a specified index.

Parameter
Type
Description

index

The zero-based index of the element to be retrieved from the collection.

item

The object to be inserted into the collection as an element.

Throws:

Parameter
Type
Description

index

The zero-based index at which the new elements should be inserted.

collection

Throws:

Removes the first occurrence of a specified item from the collection.

Parameter
Type
Description

item

The object to remove from the collection.

Removes all the elements that match the conditions defined by the specified predicate.

Parameter
Type
Description

match

Throws:

Removes an item at a specified index from the collection.

Parameter
Type
Description

index

The zero-based index of the element to be retrieved from the collection.

Throws:

Throws:

Parameter
Type
Description

comparer

Throws:

Parameter
Type
Description

comparison

Throws:

Parameter
Type
Description

comparer

swapCallback

An optional callback method, invoked on every swap. If the callback returns true to indicate that it handled the swap, the default swap is not performed.

Throws:

Computes the sum of the sequence of System.Int32 values that are obtained by invoking a transform function on each element of the list.

Parameter
Type
Description

selector

A transform function to apply to each element.

Throws:

Computes the sum of the sequence of System.Int64 values that are obtained by invoking a transform function on each element of the list.

Parameter
Type
Description

selector

A transform function to apply to each element.

Throws:

Computes the sum of the sequence of System.Single values that are obtained by invoking a transform function on each element of the list.

Parameter
Type
Description

selector

A transform function to apply to each element.

Throws:

Computes the sum of the sequence of System.Double values that are obtained by invoking a transform function on each element of the list.

Parameter
Type
Description

selector

A transform function to apply to each element.

Throws:

Computes the sum of the sequence of System.Decimal values that are obtained by invoking a transform function on each element of the list.

Parameter
Type
Description

selector

A transform function to apply to each element.

Throws:

: Gets the number of elements contained in the thread-safe collection.

Item(index)

: Gets an element from the thread-safe collection with a specified index.

The index specified is less than zero or greater than the number of items in the collection.

SyncRoot

: Gets the object used to synchronize access to the thread-safe collection.

Add(item)

AddRange(collection)

Adds the elements of the specified collection to the end of the .

The collection whose elements should be added to the end of the . The collection itself cannot be null, but it can contain elements that are null, for reference types.

collection is null.

BinarySearch(item)

Searches the entire sorted for an element using the default comparer and returns the zero-based index of the element.

Returns: . The zero-based index of item in the sorted , if item is found; otherwise, a negative number that is the bitwise complement of the index of the next element that is larger than item or, if there is no larger element, the bitwise complement of .

The default comparer cannot find an implementation of the generic interface or the interface for the type of the collection elements.

BinarySearch(item, comparer)

Searches the entire sorted for an element using the specified comparer and returns the zero-based index of the element.

The implementation to use when comparing elements; or null to use the default comparer .

Returns: . The zero-based index of item in the sorted , if item is found; otherwise, a negative number that is the bitwise complement of the index of the next element that is larger than item or, if there is no larger element, the bitwise complement of .

comparer is null, and the default comparer cannot find an implementation of the generic interface or the interface for the type of the collection elements.

Clear()

Contains(item)

Returns: . true if the element value is found in the collection; otherwise false.

CopyTo(array, index)

The destination for the elements copied from the collection.

Find(match)

Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire .

The delegate that defines the conditions of the element to search for.

Returns: . The first element that matches the conditions defined by the specified predicate, if found; otherwise, the default value.

match is null.

Find(startIndex, match)

Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire .

The delegate that defines the conditions of the element to search for.

Returns: . The first element that matches the conditions defined by the specified predicate, if found; otherwise, the default value.

match is null.

startIndex is outside the range of valid indexes for the .

FindAll(match)

The delegate that defines the conditions of the elements to search for.

Returns: . A containing all the elements that match the conditions defined by the specified predicate, if found; otherwise, an empty .

match is null.

FindIndex(match)

Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the entire .

The delegate that defines the conditions of the element to search for.

Returns: . The zero-based index of the first occurrence of an element that matches the conditions defined by match , if found; otherwise, –1.

match is null.

FindIndex(startIndex, match)

Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the that extends from the specified index to the last element.

The delegate that defines the conditions of the element to search for.

Returns: . The zero-based index of the first occurrence of an element that matches the conditions defined by match , if found; otherwise, –1.

match is null.

startIndex is outside the range of valid indexes for the .

FindIndex(startIndex, count, match)

Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the that starts at the specified index and contains the specified number of elements.

The delegate that defines the conditions of the element to search for.

Returns: . The zero-based index of the first occurrence of an element that matches the conditions defined by match , if found; otherwise, –1.

match is null.

startIndex is outside the range of valid indexes for the ; or count is less than 0; or startIndex and count do not specify a valid section in the .

FindLast(match)

Searches for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire .

The delegate that defines the conditions of the element to search for.

Returns: . The last element that matches the conditions defined by the specified predicate, if found; otherwise, the default value.

match is null.

FindLast(startIndex, match)

Searches for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire .

The delegate that defines the conditions of the element to search for.

Returns: . The last element that matches the conditions defined by the specified predicate, if found; otherwise, the default value.

match is null.

startIndex is outside the range of valid indexes for the .

FindLastIndex(match)

Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the entire .

The delegate that defines the conditions of the element to search for.

Returns: . The zero-based index of the last occurrence of an element that matches the conditions defined by match , if found; otherwise, –1.

match is null.

FindLastIndex(startIndex, match)

Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the that extends from the specified index to the last element.

The delegate that defines the conditions of the element to search for.

Returns: . The zero-based index of the last occurrence of an element that matches the conditions defined by match , if found; otherwise, –1.

match is null.

startIndex is outside the range of valid indexes for the .

ForEach(action)

Performs the specified action on each element of the .

The delegate to perform on each element of the .

action is null.

GetEnumerator()

Returns: . An for objects of the type stored in the collection.

IndexOf(item)

Returns: . The zero-based index of the first occurrence of the value in the collection.

Insert(index, item)

The index specified is less than zero or greater than the number of items in the collection.

InsertRange(index, collection)

Inserts the elements of a collection into the at the specified index.

The collection whose elements should be inserted into the . The collection itself cannot be null, but it can contain elements that are null, for reference types.

collection is null.

index is less than 0; or index is greater than .

Remove(item)

Returns: . true if item was successfully removed from the collection; otherwise, false.

RemoveAll(match)

The delegate that defines the conditions of the elements to remove.

Returns: . The number of elements removed from the .

match is null.

RemoveAt(index)

The index specified is less than zero or greater than the number of items in the collection.

Sort()

Sorts the elements in the entire using the default comparer.

The default comparer cannot find an implementation of the generic interface or the interface for the type of the collection elements.

Sort(comparer)

Sorts the elements in the entire using the specified comparer.

The implementation to use when comparing elements, or null to use the default comparer .

comparer is null, and the default comparer cannot find implementation of the generic interface or the interface for the type of the collection elements.

The implementation of comparer caused an error during the sort. For example, comparer might not return 0 when comparing an item with itself.

Sort(comparison)

Sorts the elements in the entire using the specified .

The to use when comparing elements.

comparison is null.

The implementation of comparison caused an error during the sort. For example, comparison might not return 0 when comparing an item with itself.

Sort(comparer, swapCallback)

Sorts the elements in the entire using the specified comparer and a related to sort in sync with this collection.

The implementation to use when comparing elements, or null to use the default comparer .

comparer is null, and the default comparer cannot find implementation of the generic interface or the interface for the type of the collection elements.

The implementation of comparer caused an error during the sort. For example, comparer might not return 0 when comparing an item with itself.

Sum(selector)

Returns: . The sum of the returned values.

selector is null.

Sum(selector)

Returns: . The sum of the returned values.

selector is null.

Sum(selector)

Returns: . The sum of the returned values.

selector is null.

Sum(selector)

Returns: . The sum of the returned values.

selector is null.

Sum(selector)

Returns: . The sum of the returned values.

selector is null.

ToArray()

Copies the elements of the to a new array.

Returns: . An array containing copies of the elements of the .

TrimExcess()

Sets the capacity to the actual number of elements in the , if that number is less than a threshold value.

Int32
T
ArgumentOutOfRangeException
Object
List
ArgumentNullException
List
Int32
List
Count
InvalidOperationException
Default
IComparable
IComparable
List
Int32
List
Count
InvalidOperationException
Default
IComparable
IComparable
Boolean
List
T
ArgumentNullException
List
T
ArgumentNullException
ArgumentOutOfRangeException
List
List<T>
List
List
ArgumentNullException
List
Int32
ArgumentNullException
List
Int32
ArgumentNullException
ArgumentOutOfRangeException
List
List
Int32
ArgumentNullException
ArgumentOutOfRangeException
List
List
List
T
ArgumentNullException
List
T
ArgumentNullException
ArgumentOutOfRangeException
List
List
Int32
ArgumentNullException
List
Int32
ArgumentNullException
ArgumentOutOfRangeException
List
List
ArgumentNullException
IEnumerator<T>
IEnumerator
Int32
ArgumentOutOfRangeException
List
ArgumentNullException
ArgumentOutOfRangeException
Count
Boolean
Int32
List
ArgumentNullException
ArgumentOutOfRangeException
List
InvalidOperationException
Default
IComparable
IComparable
List
InvalidOperationException
Default
IComparable
IComparable
ArgumentException
List
Comparison
ArgumentNullException
ArgumentException
List
IList
InvalidOperationException
Default
IComparable
IComparable
ArgumentException
Int32
ArgumentNullException
Int64
ArgumentNullException
Single
ArgumentNullException
Double
ArgumentNullException
Decimal
ArgumentNullException
List
T[]
List
List
Int32
IEnumerable<T>
Object
T
IEnumerable<T>
List
T
T
IComparer<T>
IComparer
Default
T
T[]
Array
Int32
Predicate<T>
Predicate
Int32
Predicate<T>
Predicate
Predicate<T>
Predicate
Predicate<T>
Predicate
Int32
Predicate<T>
Predicate
Int32
Int32
Predicate<T>
Predicate
Predicate<T>
Predicate
Int32
Predicate<T>
Predicate
Predicate<T>
Predicate
Int32
Predicate<T>
Predicate
Action<T>
Action
List
T
Int32
T
Int32
IEnumerable<T>
List
T
Predicate<T>
Predicate
Int32
IComparer<T>
IComparer
Default
Comparison<T>
Comparison
IComparer<T>
IComparer
Default
Func<Int32, Int32, Boolean>
Func<T, Int32>
Func<T, Int64>
Func<T, Single>
Func<T, Double>
Func<T, Decimal>
SynchronizedList