Write your first C# method
Learn to create your own methods to perform specific tasks.
Learning objectives
- Create your first c sharp method
- Identify parts of code that can be modularized
- Use methods to organize code into specific tasks
Prerequisites
- Experience with basic coding tasks such as instantiating variables, using various data types, and sending output to a console window.
- Experience using Visual Studio Code to create and run simple console applications.
- Experience using C# data types including
int,string,double, and arrays - Experience using
switchstatements,if-elsestatements, andforloops - Experience using
string.Split