C# First Steps
Topic: Software Development
C# is one of the most popular and in-demand programming languages in the world. It’s been around for nearly 20 years—beginning as a tool for Windows development—but continues to grow, evolve, and innovate. It’s now a cross-platform language that can be used to build apps for macOS, Linux, Android, and iOS.
Expert Brice Wilson takes you through the language’s relationship to .NET and all the basic syntax and features you need to become productive fast. You’ll also explore some fundamentals of object-oriented programming and how to use classes, objects, and interfaces in C#. Along the way, you’ll learn how to take advantage of the prebuilt functionality provided in .NET APIs and understand how they enable you to build apps on a solid foundation without coding every new feature from scratch.
What you'll learn-and how you can apply it
By the end of this live online course, you’ll understand:
- Where you can write and run C# code and its relationship to .NET
- C# value types and basic language features and syntax
- Object-oriented programming fundamentals and how they’re implemented in C#
- The capabilities of C# and how to take advantage of .NET APIs
And you’ll be able to:
- Create, write, and run new C# applications
- Create object-oriented constructs like classes, objects, and interfaces
- Write applications that take advantage of .NET Standard APIs
- Productively focus your additional learning based on the type of apps you want to build
This training course is for you because...
- You have experience in another programming language and want to learn C#.
- You’re interested in building cross-platform apps in a modern and mature language.
- You’re a client-side web developer who wants to learn more about a general-purpose programming language.
- You’re curious about (or confused by) C# and the .NET ecosystem and want to learn more about it.
- Proficiency in another programming language
- A computer with Visual Studio Code, the C# extension for Visual Studio Code, and the latest version of the .NET Core SDK for your operating system installed
- Read “Introducing C#” (chapter 1 in Programming C# 8.0)
- Read “Hello C#! Welcome, .NET!” (chapter 1 in C# 8.0 and .NET Core 3.0: Modern Cross-Platform Development)
About your instructor
Brice Wilson is a professional developer with over 20 years’ experience. He’s been a developer and architect for a number of large companies, using a great many tools and programming languages. He enjoys learning, experimenting with, and teaching new technologies. His current interests are centered on web services, single-page web applications, and native mobile development.
The timeframes are only estimates and may vary according to how the class is progressing
C# and .NET Overview (15 minutes)
- Presentation: Understanding the role of C# and its relationship to .NET; the tools you’ll use today; why you’re using these tools rather than others that are available
- Group discussion: Why do you want to learn C#?
Creating a new C# application (15 minutes)
- Presentation: Using the .NET Core CLI to create and run applications
- Hands-on exercise: Create, compile, and run a new console application with the .NET Core CLI
Variables, data types, and functions (25 minutes)
- Presentation: The difference between value types and reference types; declaring variables and using common value types; the anatomy of function declarations in C#
- Hands-on exercises: Declare variables with both var and explicit types; create and call a new function
Break (5 minutes)
Conditionals, loops, and collections (55 minutes)
- Presentation: The basic syntax for conditionals and loops; arrays and lists
- Hands-on exercise: Write a basic loop with a nested conditional statement; create a generic list of data and write a loop to iterate over it
Break (5 minutes)
Object-oriented C# (55 minutes)
- Group discussion: What’s your experience with other object-oriented languages?
- Presentation: Understanding and creating classes and objects; interfaces
- Hands-on exercises: Declare and instantiate a class; declare and implement an interface
Break (5 minutes)
Taking advantage of .NET APIs (40 minutes)
- Presentation: Understanding nuget and references to prebuilt libraries; how to find packages already created by Microsoft and others
- Hands-on exercise: Install and use a .NET package
Next steps (10 minutes)
- Presentation: How to decide what to learn next related to C# and .NET
Wrap-up and Q&A (10 minutes)