Category: VB.NET
VB.NET and LINQ – 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 LINQ 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 LINQ in VB.NET ?…
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
VB.NET and LINQ – 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 LINQ in Visual Basic.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 LINQ in VB.NET ? The output…
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 ?…
VB.NET Program to display "Hello, World!"
Problem Write a program in VB.NET to display “Hello, World!” on the screen. VB.NET Program to display “Hello, World!” in Console Window. This is a simple VB.NET program that displays “Hello, World!” on the console window. Output Hello, World! In the above program , Main() is the starting point for the program and the Console.WriteLine function is used to display the string on the Console…
VB.NET and LINQ – 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 LINQ 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 LINQ in VB.NET ? Output Employees whose salary is greater than 20000 pounds Michael John
VB.NET Program to add two integers
Problem Write a program in VB.NET to add two integers and display the result on the screen. VB.NET Program to add two integers Output Enter the first number : 1 Enter the second number : 2 The sum of two numbers is:3
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…