C
C#2mo ago
blunt

✅ Methods

I'm new to C# and I was wondering what is a method? Is it like a reusable chunk of code and what can it be applied to?
4 Replies
Buddy
Buddy2mo ago
https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/methods
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 arguments. In C#, every executed instruction is performed in the context of a method.
It is very good to look up documentation for when it is something you do not understand. The #1 tool a programmer should know at hand A method is a function, just different terms but the same meaning.
blunt
bluntOP2mo ago
tysm
canton7
canton72mo ago
$close
MODiX
MODiX2mo ago
If you have no further questions, please use /close to mark the forum thread as answered
Want results from more Discord servers?
Add your server