BaseObjectSpace.FirstOrDefault<ObjectType>(Expression<Func<ObjectType, Boolean>>) Method
In This Article
Searches for the first object that matches the specified lambda expression. The generic parameter determines the object’s type.
Namespace: DevExpress.ExpressApp
Assembly: DevExpress.ExpressApp.v24.2.dll
NuGet Package: DevExpress.ExpressApp
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
criteria |
Expression<Func<Object |
A lambda expression to search for an object. |
#Type Parameters
Name | Description |
---|---|
Object |
The Type of an object to be returned. |
#Returns
Type | Description |
---|---|
Object |
The first object that matches the specified lambda expression. |
#Remarks
This method invokes the public virtual FirstOrDefault<ObjectType>(Expression<Func<ObjectType, Boolean>>, Boolean) method that does nothing and returns null (Nothing in VB). Override this virtual method in a BaseObjectSpace descendant to implement an object search.
#Implements
See Also