About 198,000 results
Open links in new tab
  1. Methods - C# | Microsoft Learn

    Jun 20, 2023 · A method is a code block that contains a series of statements. A program causes the statements to be executed by calling the method and specifying any required method …

  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. Methods in C# - GeeksforGeeks

    Sep 9, 2025 · A method is a block of code that performs a specific task. It can take inputs, return results and is defined within classes to make programs modular, readable and reusable.

  4. C# Method (With Examples) - Programiz

    A method is a block of code that performs a specific task. In this tutorial, we will learn about the C# method with the help of examples.

  5. C# - Methods - Online Tutorials Library

    A method is a block of code that contains a group of statements that together perform a task. Every C# program has at least one class with a method named Main.

  6. Defining and Calling Methods in C# - csharptraining.co.uk

    In this post, you’ll learn how to define, call, and structure methods in C#. You’ll also learn how to pass values into them, get results back, and build cleaner, more modular programs.

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

    Nov 10, 2024 · In this article, we’ll dive into the essentials of methods in C#, their structure, and best practices for using them effectively. What Are Methods in C#? In C#, methods are blocks …

  8. C# Methods vs Functions: A Practical Guide (with Examples)

    Sep 21, 2025 · Unlock the power of Methods in C# for optimized code structure. Learn to define, call, and manage Methods effectively. Do your methods actually do one thing? Most teams …

  9. Methods – Intro to C# and .NET by Spencer Schneidenbach – …

    Methods are defined to encapsulate reusable logic in programming to "do stuff". Here's the general syntax for a method: // method body . Access modifier: Defines the visibility (e.g., …

  10. C# Methods - letshired.com

    This detailed tutorial on C# methods will guide you through the basic syntax, different types of methods, and advanced topics like method overloading and recursion.