Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Started tutorial on types #45622

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

BillWagner
Copy link
Member

@BillWagner BillWagner commented Apr 3, 2025

Fixes #45114

Add a new day one interactive tutorial to explore how you create types in C#. This tutorial focuses on tuples and records, as the simplest data container types in C#. This is meant to be a day 1 exploration, so this tutorial assumes the reader hasn't acquired the SDK or other tools yet.

More types will be explored in tutorials in the "Fundamentals" section, when readers are assumed to have installed necessary tools.


Internal previews

📄 File 🔗 Preview link
docs/csharp/toc.yml Taken from https://github.com/dotnet/roslyn/wiki/Samples-and-Walkthroughs
docs/csharp/tour-of-csharp/tutorials/index.md Interactive tutorials
docs/csharp/tour-of-csharp/tutorials/numbers-in-csharp.md How to use integer and floating point numbers in C#
docs/csharp/tour-of-csharp/tutorials/tuples-and-types.md docs/csharp/tour-of-csharp/tutorials/tuples-and-types

The code is written in snippets, and not using
the interactive window yet.
Use the class type, and declare a `Main` method.
Proofread, content and data check.
@BillWagner BillWagner requested review from IEvangelist and adegeo April 3, 2025 20:08
@BillWagner BillWagner marked this pull request as ready for review April 3, 2025 20:11
@BillWagner BillWagner requested a review from a team as a code owner April 3, 2025 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Everyday C#] Add a tuples & types tutorial
1 participant