marp | theme | style |
---|---|---|
true |
wctc |
@import 'wctc-theme.css';
|
Instructor: Mark McArthey
- C# is a modern, object-oriented, and type-safe programming language developed by Microsoft.
- It is part of the .NET framework, making it versatile for various types of applications.
- Variables store data to be referenced and manipulated in programs.
- Common data types include
int
,string
,bool
, anddouble
.
- Arithmetic operators (+, -, *, /)
- Comparison operators (==, !=, >, <)
- Logical operators (&&, ||, !)
if
,else if
,else
switch
statements
for
: Iterates a set number of times.foreach
: Iterates over items in a collection.while
: Continues as long as a condition is true.do while
: Similar towhile
, but checks condition after the loop.
- Fixed size, same data type collection.
- Dynamic size, same data type collection.
- Part of
System.Collections.Generic
.
- Encapsulate reusable code blocks.
- Can return a value or be void.
try
,catch
,finally
blocks handle exceptions.- Ensures graceful handling of runtime errors.
- Reading and writing files is essential for data management.
System.IO
namespace provides tools for file operations.
using System.IO;
string text = File.ReadAllText("file.txt");
File.WriteAllText("output.txt", text);
- Comprehensive resource for all C# features, from basic to advanced.
- Microsoft C# Docs
- TutorialsPoint - Easy-to-follow tutorials on C# basics and advanced topics.
- DotNet Perls - Offers detailed tutorials and practical examples on various C# concepts.
- Microsoft Learn - Interactive modules and learning paths tailored to using C# in different scenarios.
- Codecademy - Provides an interactive course where you can write C# code in a browser-based environment.
- "C# 9.0 in a Nutshell" by Joseph Albahari - A comprehensive guide to the C# language and its uses.
- "The C# Player's Guide" by RB Whitaker - A beginner-friendly guide to learning C#, great for those starting out.
- Udemy - Various courses ranging from beginner to advanced levels, often with comprehensive projects and downloadable resources.
- Pluralsight - Known for its deep-dive courses into C# and .NET technologies.
- Stack Overflow - A vast community of developers where you can ask questions and share knowledge about C# programming.
- GitHub - Explore open-source C# projects to see how other developers use the language.
- .NET Microsoft - Official channel with tutorials, product announcements, and community content.
- IAmTimCorey - Focuses on practical C# tutorials and projects.
-
C# Fundamentals: We've covered the basics such as variables, data types, control structures, and loops. Understanding these will help you build robust applications.
-
Console Applications: You've learned how to create simple console applications in C#. These serve as a great starting point for beginner programmers to understand the flow of a C# program.
-
File I/O: Handling file input and output is critical for many real-world applications. Today's introduction should help you manage data effectively in your future projects.
-
Practice and Persistence: Like any programming language, proficiency in C# comes with practice. Utilize the exercises and resources provided to enhance your understanding and skills.
-
Community and Continual Learning: Engage with the C# community and continue learning through the resources shared. Staying updated and interacting with other developers will greatly aid your growth.
Keep experimenting with what you've learned today. Build small projects, contribute to open source, and don't hesitate to reach out for help when you need it. Happy coding!