Click or drag to resize

collectionExtensionstakeFirstFromListT Method (IEnumerableT, IEnumerableT, T)

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Vraca prvi objekat koji se nalazi i u ovom skupu i u matchList skupu

Namespace:  imbSCI.Core.extensions.data
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static T takeFirstFromList<T>(
	this IEnumerable<T> input,
	IEnumerable<T> matchList,
	T defReturn
)
Request Example View Source

Parameters

input
Type: System.Collections.GenericIEnumerableT
matchList
Type: System.Collections.GenericIEnumerableT
Koji od elemenata treba da se poklopi
defReturn
Type: T
Element koji vraca u podrazumevanom slucaju

Type Parameters

T

Return Value

Type: T
Prvi element koji se nalazi u oba skupa

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableT. 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