 | collectionExtensionstakeItemRelativeToT Method |
imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Vraca item koji je na relativnoj lokaciji od relativeTo, podrzava lupovanje u oba smera
Namespace:
imbSCI.Core.extensions.data
Assembly:
imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntaxpublic static T takeItemRelativeTo<T>(
this IList<T> source,
T relativeTo,
int indexStep
)
where T : class
Request Example
View SourceParameters
- source
- Type: System.Collections.GenericIListT
- relativeTo
- Type: T
Item u odnosu na koji trazi relativni item. Ukoliko relativeTo nije nu kolekciji koristi indexStep kao index upit - indexStep
- Type: SystemInt32
1 = next line, -1 = prev line, -5 = 5 lines before, 5 = 5 lines after, 0 = this line
Type Parameters
- T
Return Value
Type:
TVraca null ako je relativeTo null i ako je source kolekcija prazna.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IListT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also