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 arraysExperience using
switch
statements,if-else
statements, andfor
loopsExperience using
string.Split