method
A named block of code you can call, optionally with inputs and a result.
A method is a named member containing a block of statements; it declares a return type (or void) and a parameter list, and is invoked by name with arguments.
Examples
static decimal Total(decimal price, int qty) => price * qty;declares a method, andTotal(2.50m, 4)calls it.
See also