EntityDAC

IObjectEnumerable<T>.FirstOrDefault Method

Returns the first element of an enumeration, or a nil value if no element is found.

Class

IObjectEnumerable<T>

Syntax

function FirstOrDefault: T;

Remarks

Use the method to obtain the first element of an enumeration. If the enumeration contains no elements, the method returns nil.

© 1997-2017 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback