# Method

*noun*

say it: **“METH-ud”** **/ˈmɛθəd/**

A named block of code in a class that does one job and can take inputs and return a result.

## What is **Method** in C#?

**Method** — A named block of code that performs an action and can return a value.

## In a sentence

- “I moved the tax calculation into a **method** called AddTax, so I can call it anywhere.”

Level: Novice · [More C# terms at this level](https://www.ask-codey.com/glossary?category=c-sharp&level=1)

Updated: November 9, 2026

## In other subjects

- [Method in Java](https://www.ask-codey.com/glossary/method-java)
- [Method in JavaScript](https://www.ask-codey.com/glossary/method-javascript)
- [Method in OOP](https://www.ask-codey.com/glossary/method-oop)
- [Method in Python](https://www.ask-codey.com/glossary/method)

Source: https://www.ask-codey.com/glossary/method-c-sharp
