TItem
The type of the item.
Platform Core .NET Assemblies API
TryGetItemByIndex<TItem> Method
See Also  Send Feedback
Terrasoft.Common Namespace > CollectionUtilities Class : TryGetItemByIndex<TItem> Method
source
The source collection.
index
The index.
item
The item.

Glossary Item Box

Tries to get an item of the collection by the given index.

Syntax

 
C#
 
 

Parameters

source
The source collection.
index
The index.
item
The item.

Type Parameters

TItem
The type of the item.

Return Value

True, if item with current index is found in collection. Otherwise - false.

Remarks

Used for thread-unsafe collections, when is not important to get item of the collection in actual state.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© Terrasoft 2002-2018.