EntityDAC

IObjectEnumerable<T>.First Method

Returns the first element of an enumeration.

Class

IObjectEnumerable<T>

Syntax

function First: T;

Remarks

Use the method to obtain the first element of an enumeration. The method throws an exception if the enumeration contains no elements. To instead return nil when the enumeration is empty, use the FirstOrDefault method.

See Also

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