About 338,000 results
Open links in new tab
  1. Local functions - C# | Microsoft Learn

    Nov 22, 2024 · Local functions in C# are private methods that are nested in another member and can be called from their containing member.

  2. C# Methods - W3Schools

    A method is a block of code which only runs when it is called. You can pass data, known as parameters, into a method. Methods are used to perform certain actions, and they are also …

  3. Functions in C# with Examples - Dot Net Tutorials

    What are the Functions of C# Language? A function is a group of related instructions that performs a specific task. It can be a small or big task, but the function will perform that task …

  4. Functions - The complete C# tutorial

    To call a function, you simply write its name, an open parenthesis, then parameters, if any, and then a closing parenthesis, like this: Here is an example of our DoStuff () function: …

  5. C# Functions / Methods Tutorial With Code Examples

    Apr 1, 2025 · This Tutorial Explains What Are Functions in C# Programming with Simple Examples. You Will Also Learn The Basic Differences Between Functions And Methods.

  6. 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.

  7. C# Functions for Beginners: How to Create and Use Functions in …

    Nov 20, 2025 · In C#, a function (or "method") is a self-contained block of code designed to perform a specific task. Think of it as a "subprogram" that you can call from other parts of your …

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

    In C#, a function is a block of code that performs a specific task and can be called from other parts of your program. Functions are a fundamental concept in C# and are often referred to as …

  9. Functions in C# | Learn X By Example

    Functions in C# Functions are central in C#. We’ll learn about functions with a few different examples.

  10. Methods and Functions in C#: Writing Clean, Maintainable Code

    Nov 10, 2024 · Methods (also called functions in other programming languages) are fundamental building blocks in C#. They encapsulate logic, make code reusable, and enhance readability …