C# में Methods और Functions Same हैं।
हालांकि, Methods C# में उपयोग किए जाते हैं और वे Functions होते हैं जो Designated Class के माध्यम से Operate करते हैं। एक Method, Statements का Group होता है जो मिलकर एक Task Perform करता है। हर C# Program में कम से कम एक Class होती है जिसमें Main नाम की Method होती है।
निम्न C# में Methods Create करने का एक Simple Example है।
Example
class NumberManipulator { public int FindMax(int num1, int num2) { /* Local Variable Declaration */ int result; if (num1 > num2) { result = num1; }else { result = num2; } return result; } ... }