Write your first C# method

Beginner
Developer
Higher Education Educator
K-12 Educator
Student
.NET
Visual Studio Code

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 switch statements, if-else statements, and for loops
  • Experience using string.Split