Arrays, Lists, Indexing, and Foreach [Pt 13] | C# for Beginners

  Рет қаралды 14,659

dotnet

7 ай бұрын

View full playlist: aka.ms/dotnet/beginnervideos/youtube/csharp
Set up C# in VS Code: aka.ms/dotnet/get-started/vscode
🏆Earn the C# Certification: aka.ms/csharp-certification
David and Scott continue our conversation about Lists and another new topic, arrays! Learn about the similarities and differences between these structures and when to use each of them.
Links:
.NET Beginner Videos: aka.ms/dotnetvideos
MS Learn: aka.ms/dotnet/beginnervideos/mslearn
Blog: aka.ms/dotnet/blog
Twitter: aka.ms/dotnet/twitter
TikTok: aka.ms/dotnet/tiktok
Mastodon: aka.ms/dotnet/mastodon
LinkedIn: aka.ms/dotnet/linkedin
Facebook: aka.ms/dotnet/facebook
Docs: learn.microsoft.com/dotnet
Forums: aka.ms/dotnet/forums
🙋‍♀️Q&A: aka.ms/dotnet-qa
👨‍🎓Microsoft Learn: aka.ms/learndotnet
#dotnet #csharp

Пікірлер: 7
@BlessedNdoro
@BlessedNdoro 5 ай бұрын
Gets index out of range exception : "You told me to read these things ... but i'm just gonna panic and not read" Me: 🤣😂 You guys are the best at teaching concepts!!!!
@bilkisuismail6096
@bilkisuismail6096 5 ай бұрын
These lectures are great
@ADAM63639
@ADAM63639 7 ай бұрын
Excellent teachers
@DookyButter
@DookyButter 4 ай бұрын
2:25 [Ctrl] + [/] is a better commenting hotkey, albeit the one in the video is good to know b/c it is used in other Microsoft platforms such as SSMS.
@anagabriella5463
@anagabriella5463 4 ай бұрын
i dont know if im learning c#, how to use vs code or learning english. (im brazilian)
@kvelez
@kvelez 7 ай бұрын
var names = new List() { "Kevin", "Joseph", "Raul", "Marco" }; names.Add("Sophia"); names.Add("Lucy"); // add bucket Console.WriteLine(names[names.Count-1]); // last element Console.WriteLine(names[^1]); // count from the back. Console.WriteLine(); foreach (var name in names[2..4]) // ranges { Console.WriteLine(name); } Console.WriteLine(); var people = new string[] { "Kevin", "Joseph", "Raul", "Marco" }; // array people = [..people, "Sophia", "Lucy"]; // new bucket people.ToList().ForEach(x => Console.WriteLine(x));
@hipertracker
@hipertracker 2 ай бұрын
names[^2] looks weird, names [-2] is more cleaner
Sigma Girl Past #funny #sigma #viral
00:20
CRAZY GREAPA
Рет қаралды 32 МЛН
Игровой Комп с Авито за 4500р
1:00
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 1,9 МЛН
YOTAPHONE 2 - СПУСТЯ 10 ЛЕТ
15:13
ЗЕ МАККЕРС
Рет қаралды 172 М.