FirstOrDefault Method (IFilteredRecordCollection<TRecord>)
- Last UpdatedApr 08, 2026
- 1 minute read
Performs the action on the first record in the collection if it exists, ordered by ascending IRecord.RecordNumber. If the collection is empty, then nothing happens.
| Overload | Description |
|---|---|
| FirstOrDefault(Action<TRecord>,LockType,LockType) | Performs the action on the first record in the collection if it exists, ordered by ascending IRecord.RecordNumber. If the collection is empty, then nothing happens. |
| FirstOrDefault<TResult>(Func<TRecord,TResult>,LockType,LockType) | Performs the function on the first record in the collection if it exists, ordered by ascending IRecord.RecordNumber, and returns the result. If the record does not exist, then the default value of TResult is returned. |