About 251,000 results
Open links in new tab
  1. Functions in C# with Examples - Dot Net Tutorials

    As part of this article, you will understand what methods are and their type and how to create and call functions in C# with Examples. What are the Functions of C# Language? A function is a …

  2. Local functions - C# | Microsoft Learn

    Nov 22, 2024 · Local functions are methods of a type that are nested in another member. They can only be called from their containing member. Local functions can be declared in and called …

  3. C# Functions / Methods Tutorial With Code Examples - Software …

    Apr 1, 2025 · In C#, functions have the following syntax: <Access Specifiers> <return type> <name of the function>(< function parameters>) { <function code> return; } As we discussed in …

  4. Functions - The complete C# tutorial

    A function allows you to encapsulate a piece of code and call it from other parts of your code. You may very soon run into a situation where you need to repeat a piece of code, from multiple …

  5. C# Functions - C# Tutorial

    In this tutorial, you'll learn how to make your code reusable by using C# functions that are reusable named blocks.

  6. User-Defined Functions in C# with Examples - Dot Net Tutorials

    There are four types of user-defined functions in C#. They are as follows: Functions with No Argument and No Return Type. Functions with Argument and No Return Type. Functions with …

  7. C# Function with Examples - C-Sharp Tutorial

    Functions in C# are known as methods and are defined within a class or struct. They can have parameters, which are variables passed into the method, and they can return a value or be …

  8. Functions in C# with Examples - AspDotnetHelp.com

    Dec 26, 2023 · Defining a Function: A function is declared by specifying the return type, name, and parameters. The syntax for a typical function is as follows: // Code to execute. return …

  9. Mastering C# Functions: A Comprehensive Guide

    Jul 22, 2024 · In this guide, we will delve into the world of C# functions, covering everything from basic syntax to advanced techniques. What are Functions in C#? In C#, a function is a block of …

  10. Defining C# Functions | Useful Codes

    Jan 1, 2025 · In C#, a function is defined using a specific syntax that includes several components: the access modifier, return type, method name, parameters, and the body of the …

  11. Some results have been removed