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

  Рет қаралды 21,214

dotnet

dotnet

Күн бұрын

View full playlist: aka.ms/dotnet/...
Set up C# in VS Code: aka.ms/dotnet/...
🏆Earn the C# Certification: aka.ms/csharp-...
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/dotnetv...
MS Learn: aka.ms/dotnet/...
Blog: aka.ms/dotnet/...
Twitter: aka.ms/dotnet/...
TikTok: aka.ms/dotnet/...
Mastodon: aka.ms/dotnet/...
LinkedIn: aka.ms/dotnet/...
Facebook: aka.ms/dotnet/...
Docs: learn.microsof...
Forums: aka.ms/dotnet/...
🙋‍♀️Q&A: aka.ms/dotnet-qa
👨‍🎓Microsoft Learn: aka.ms/learndo...
#dotnet #csharp

Пікірлер: 12
@DookyButter
@DookyButter 7 ай бұрын
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.
@BlessedNdoro
@BlessedNdoro 8 ай бұрын
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!!!!
@ADAM63639
@ADAM63639 10 ай бұрын
Excellent teachers
@kvelez
@kvelez 28 күн бұрын
2:54 Read errors 4:13 var names = new List { "Some", "Name", "LastName" }; Console.WriteLine(names[1]); Console.WriteLine(names[names.Count - 1]); Console.WriteLine(names[^1]); Console.WriteLine(names[^2]); foreach (var name in names[..^2]) Console.WriteLine(name);
@BluezConcepts
@BluezConcepts Ай бұрын
why can't i say names.length-1? why count-1?
@tmhchacham
@tmhchacham Ай бұрын
It depends on the object being used. You just have to know which is implemented. Luckily, the editor will help you figure that out.
@olamideabass5587
@olamideabass5587 7 күн бұрын
you use .Length for arrays and .Count for lists
@hipertracker
@hipertracker 5 ай бұрын
names[^2] looks weird, names [-2] is more cleaner
@DasDron
@DasDron Ай бұрын
[-2] is not working in C# sadly, so that's why they used [^2]
@bilkisuismail6096
@bilkisuismail6096 8 ай бұрын
These lectures are great
@anagabriella5463
@anagabriella5463 7 ай бұрын
i dont know if im learning c#, how to use vs code or learning english. (im brazilian)
Sorting and Searching Lists [Pt 14] | C# for Beginners
8:15
Classes & Objects | C# | Tutorial 25
13:25
Giraffe Academy
Рет қаралды 172 М.
Поветкин заставил себя уважать!
01:00
МИНУС БАЛЛ
Рет қаралды 6 МЛН
The joker favorite#joker  #shorts
00:15
Untitled Joker
Рет қаралды 30 МЛН
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 15 МЛН
LINQ Method Syntax vs Query [Pt 17] | C# for Beginners
7:57
Arrays vs Lists
12:49
Coding Tutorials
Рет қаралды 6 М.
40 Years Of Software Engineering Experience In 19 Minutes
19:10
Continuous Delivery
Рет қаралды 80 М.
Stop Using FirstOrDefault in .NET! | Code Cop #021
12:54
Nick Chapsas
Рет қаралды 72 М.
List T and Collections of Data [Pt 12]  | C# for Beginners
12:08
Await Async Tasks Are Getting Awesome in .NET 9!
9:24
Nick Chapsas
Рет қаралды 95 М.
Microservices are Technical Debt
31:59
NeetCodeIO
Рет қаралды 325 М.
😱ЭТО СМАРТФОНЫ SAMSUNG!
1:00
Thebox - о технике и гаджетах
Рет қаралды 2 МЛН
Обзор на 16 айфон
1:01
Тыковка из Германии
Рет қаралды 403 М.
Evolution of PhoneVision
0:18
PhoneVision
Рет қаралды 604 М.
Evolution of the Samsung Galaxy
0:50
ios_aesthetics
Рет қаралды 6 МЛН
Плюсы и минусы ТРЁХ экранов Huawei
0:59
Romancev768
Рет қаралды 66 М.
iPhone 16
0:20
Adhemz
Рет қаралды 11 МЛН