Category: 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 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