Click or drag to resize
ItemExtensionsFirstOrNullItem Method (IEnumerableIReadOnlyItem, FuncIReadOnlyItem, Boolean)
Returns either the first matching item from the enumerable or a 'null' item (where Exists is false) if there are no items which match the predicate

Namespace: Innovator.Client
Assembly: Innovator.Client (in Innovator.Client.dll) Version: 2016.1.15.1759 (2016.01.15.1759)
Syntax
public static IReadOnlyItem FirstOrNullItem(
	this IEnumerable<IReadOnlyItem> items,
	Func<IReadOnlyItem, bool> predicate
)

Parameters

items
Type: System.Collections.GenericIEnumerableIReadOnlyItem
predicate
Type: SystemFuncIReadOnlyItem, Boolean
Criteria to match

Return Value

Type: IReadOnlyItem

Usage Note

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