C# 6.0 feature – Lambda Expression in Function Members
C# 6.0 lets the developers to use lambda expression as function member . For example , instead of the function body , you can write the lambda expression directly as shown below.
C# 6.0 feature – Lambda Expression in Function Members
public static int AddNumber(int a, int b) => a + b;
static void Main(string[] args)
{
Console.WriteLine(AddNumber(2,3));
Console.ReadLine();
}Share this:
Popular Stories
-
Enterprise Architecture Fundamentals Bootcamp: What Enterprise Architects Actually Do Day... youtube.com
-
Reusable Architecture Patterns (17 of 20) youtube.com
-
Why AI is Killing the "Comfortable" Architect (And what's next) youtube.com
-
Evolving Solutions Perspective: Modern Network Architecture with Matt Erickson youtube.com
-
Material 3 in .NET MAUI — One Line to Transform... youtube.com
Tags
.NET Errors
App
C#
C# Errors
C# programs
COBOL Error Messages
csharp
database
Database Error Messages
DB2 Error Messages
Delphi Errors
Erply API
F#
Google Play
guide
How to
IBM Application Discovery and Delivery Intelligence
IBM InfoSphere Information Server
IBM QRadar
IBM Workload Automation
InterSystems IRIS Errors
Java
Javascript
Lab programs
LINQ
List
MariaDB Errors
MS SQL Server Error Codes
Oracle Errors
python tutorials
SQL Server
tips
tricks
TroubleShoot SQLite Errors
tutorial
tutorials
visual studio 2015
Windows
Windows 10
Windows Errors
Windows Phone
Windows Phone 8
Windows System Errors
wp8
XAML
Recent Stories
-
Enterprise Architecture Fundamentals Bootcamp: What Enterprise Architects Actually Do Day... youtube.com
-
Reusable Architecture Patterns (17 of 20) youtube.com
-
Why AI is Killing the "Comfortable" Architect (And what's next) youtube.com
-
Evolving Solutions Perspective: Modern Network Architecture with Matt Erickson youtube.com
-
Material 3 in .NET MAUI — One Line to Transform... youtube.com
Leave Your Comment