Topics

Csharp Function

About this topic: Articles tagged __TAG__

Showing 7 articles

Topics

Articles

Showing 7 articles

How-tos How to Return Multiple Values From a Function in C# There are 3 main methods that can be used to return multiple values from a function in C#, using array as the function return-type, using a class or a structure as the function … How-tos How to Pass a Function as a Parameter in C# There are 2 main methods that we can use to pass a function as a parameter inside another function in C#, the func<> delegate, and the Action<> delegate. How-tos How to Create an Inline Function in C# There are 3 main methods that can be used to create an inline function in C#, by using lambda expressions, by using lambda statements, and by using local functions. How-tos Abstract Function vs Virtual Function in C# An abstract function does not provide any definition of itself, while a virtual function has a default definition in C#. How-tos How to Exit a Function in C# In this tutorial, learn the different methods of exiting a function in C# with examples. Use the break, continue, goto, return, and throw exception statements. How-tos Create Map and Reduce Functions in C# This tutorial elaborates how to create and use map and reduce functions in C#. How-tos How to Get the Current Method Name in C# In this article, we'll learn how to get the current method name that is being executed in C#.

← All topics