Tag: Lambda
How to use OrderBy Descending in Lambda Expression in C#?
Below is a sample code snippet demonstrating how to use OrderBy Descending in Lambda Expression in C#. How to use OrderBy Descending in Lambda Expression in C#?
C# and Lambda – Finding all the elements of an integer array less than 35
Here’s a sample code snippet demonstrating how to find all the elements of an integer array that is less than 35 using Lambda expression in C#. The Where keyword in C# is used to filter the elements from a collection based on the specified criteria. How to find all the elements of an integer array less than 35 using Lambda expression in C# ? The…
How to use Find method with Lambda Expressions in C#?
Below is a sample source code demonstrating how to use Find method with Lambda Expression in C# How to use Find method with Lambda Expressions in C#?
VB.NET and Lambda – Filter elements from object collection using where clause
Here’s a sample code snippet demonstrating how to filter elements from a list of objects using the where clause using Lambda in VB.NET. This sample gets all the employees who salary is greater than 20000 GBP. How to Filter Employees List whose salary is greater than 20000 GBP using Lambda in VB.NET ? Output Employees whose salary is greater than 20000 pounds Michael John
C# and Lambda – Filter elements from object collection using Where method
Here’s a sample code snippet demonstrating how to filter elements from a list of objects using the where clause using Lambda in C#. This sample gets all the employees who salary is greater than 20000 GBP. How to Filter Employees List whose salary is greater than 20000 GBP using Lambda in C# ? Output Employees whose salary is greater than 20000 pounds Michael John
Example of Function Delegates in C#
Below is a sample code snippet that demonstrates the function delegates or lambda expression in C# . Example of Function Delegates in C#
VB.NET and Lambda – Filter elements from object collection with Logical Operators
Here’s a sample code snippet demonstrating how to filter elements from a list of objects using the where clause using Lambda in VB.NET. This sample gets all the employees who salary is greater than 20000 GBP and age is greater than 22. How to Filter Employees List whose salary is greater than 20000 GBP and age is greater than 22 using Lambda in VB.NET ?…
How to List Odd Numbers from a List of Integers using Lambda Expression in C#?
Are you looking out for a simple logic to retrieve the odd numbers from the list of integers using Lambda Expression in C#? Below is a sample code snippet demonstrating how to do it. How to List Odd Numbers from a List of Integers using Lambda Expression in C#?
Best Java Equivalent for LINQ (C#)
LINQ Query and Lambda expressions are one of the popular features of C# which helped the .NET developers in many ways. If you are a Java developer and wondering is there anything similar to this in Java ? ,this post will provide some insights on the additional APIs which could bring in the similar functionality Best Java Equivalent for LINQ (C#) jaque Another Java integrated…
How to Get the Max Value from a List of Integer using Lambda Expression in C#?
Below is a sample code snippet demonstrating the usage of Lambda expression to get the Max value from a list of integer in C#. How to Get the Max Value from a List of Integer using Lambda Expression in C#?
C# and Lambda – Filter elements from object collection with Logical Operators
Here’s a sample code snippet demonstrating how to filter elements from a list of objects using the where clause using Lambda in C#. This sample gets all the employees who salary is greater than 20000 GBP and age is greater than 22. How to Filter Employees List whose salary is greater than 20000 GBP and age is greater than 22 using Lambda in C# ?…
VB.NET and Lambda – Finding all the elements of an integer array less than 35
Here’s a sample code snippet demonstrating how to find all the elements of an integer array that is less than 35 using Lambda expression in VB.NET. The Where keyword in VB.NET is used to filter the elements from a collection based on the specified criteria. How to find all the elements of an integer array less than 35 using Lambda expression in VB.NET ? Numbers…
Example of Lambda Expression with Action Method in C#
Below is a sample code snippet that demonstrates the lambda expression with action method in C#. Example of Lambda Expression with Action Method in C#
Example of Lambda Expression with Action method with String as Parameter in C#
Below is a sample code snippet that demonstrates the lambda expression with action method with string as parameter in C#. Example of Lambda Expression with Action method with String as Parameter