Module 03 of 09 · C# From Beginner to Advanced
Methods
Give work a name, pass it inputs, get results back, and control what can see it.
6 of 6 lessons available
Lessons in this module
- 0114 min
Creating Methods
BeginnerDefine methods with clear names, inputs and return types.
- 0216 min
Parameters
BeginnerPass data into methods, including by value, by reference and with out.
- 0315 min
Return Values
BeginnerReturn single and multiple values, and decide when a return type should be nullable.
- 0413 min
Optional and Named Arguments
BeginnerProvide defaults and call methods readably when several parameters share a type.
- 0515 min
Method Overloading
BeginnerOffer several versions of a method and understand how the compiler chooses.
- 0614 min
Scope and Lifetime
BeginnerPredict where a variable is visible and how long it exists.
Have a project worth talking through?
Tell us what you're building or what's slowing your current system down. We'll give you a direct read on scope and approach.