Beginner's Guide To Dictionaries In C# - Get Started NOW!

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.ย. 2024
  • If you're getting started in C# and your dotnet development, you've probably come across the dictionary class. This video will walk you through the basic usage of dictionaries in C# and is fully intended for beginners!
    Have you subscribed to my weekly newsletter yet? A 5-minute read every weekend, right to your inbox, so you can start your weekend learning off strong:
    www.devleader....
    Check out more Dev Leader content (including full in-depth articles with source code examples) here:
    linktr.ee/devl...
    Social Media:
    Blog: www.devleader.ca/
    Newsletter: www.devleader....
    TikTok: / devleader
    LinkedIn: / nickcosentino
    Threads: threads.net/@dev.leader
    Twitter: / devleaderca
    Facebook: / devleaderca
    Instagram: / dev.leader
    GitHub: github.com/nco...
    Twitch: / ncosentino
    TH-cam: / @devleader
    #csharp #dotnet #dotnetcore #dictionary #collections

ความคิดเห็น • 15

  • @DevLeader
    @DevLeader  ปีที่แล้ว +1

    You can check out this three-part article series on dictionaries in C# as well!
    www.devleader.ca/2023/09/04/how-to-dictionary-in-c-simplified/
    I hope that you find it useful :)

  • @mariodavidrigueracastillo3734
    @mariodavidrigueracastillo3734 9 หลายเดือนก่อน +2

    Thanks, great video.

    • @DevLeader
      @DevLeader  9 หลายเดือนก่อน

      Thanks very much! I hope you found it helpful 🙂

  • @piotrwrotny9703
    @piotrwrotny9703 ปีที่แล้ว +1

    Ty:)

    • @DevLeader
      @DevLeader  ปีที่แล้ว

      I hope you found it helpful 🙂

    • @piotrwrotny9703
      @piotrwrotny9703 ปีที่แล้ว +1

      ​@@DevLeader sure! I am a student from Poland, a medium-sized country in eastern Europe. I already work in IT but as a data analyst on data system central to the proper distribution of civil cash benefits (SQL, Python, R). My dream/goal is to become a .NET programmer. I'm grinding courses on Pluralsight, but trying to surround myself with programming and C# everywhere I can. Your videos have helped me a lot in this recently :)
      Would you like to maybe make a video one day about how a junior can learn by reading the code of experienced programmers? not sure if this is a good topic for a video. Maybe you already made a video on this topic? I've heard somewhere that it's worth taking the time to analyze code of better ones than myself but I feel a bit lost with all the github available :)
      (my english not good)

    • @DevLeader
      @DevLeader  ปีที่แล้ว +1

      @@piotrwrotny9703 your English is great from what I can see in your comments 🙂 I'm so happy to hear the videos have helped you with learning! I'm trying to balance beginner content with more advanced videos, so check my website as well (devleader.ca) in case some of the very beginner topics don't make it to videos 🙂
      I think that video suggestion makes sense, I just need to think about how I'd want to bring that together in video form. I'd also like to start recording code reviews and posting them!

    • @piotrwrotny9703
      @piotrwrotny9703 ปีที่แล้ว +1

      @@DevLeader Sorry, but I can't add an answer. YT deletes my comment 15s after adding it. I'll add it in parts, and we'll see which one doesn't fit the algorithm:) sorry for the spam

    • @piotrwrotny9703
      @piotrwrotny9703 ปีที่แล้ว +1

      @@DevLeader
      TY again! I will definitely check out the website. I haven't looked at it before.

  • @kvelez
    @kvelez 10 หลายเดือนก่อน

    using System;
    using System.Collections.Generic;
    using System.Linq;
    namespace ConsoleApp1
    {
    public class Program
    {
    static void Main(string[] args)
    {
    var person = new People[]
    {
    new People("Kevin", 19),
    };
    Dictionary people = new Dictionary()
    {
    { "Kevin", 19 },
    };
    if (people.ContainsKey("Kevin"))
    {
    people.Add("Josh", 20);
    }
    }
    }
    public class People
    {
    public string Name { get; set; }
    public int Age { get; set; }
    public People(string name, int age)
    {
    Name = name;
    Age = age;
    }
    }
    }

    • @DevLeader
      @DevLeader  10 หลายเดือนก่อน +1

      Just checking - did you have a question, or just sharing code? 🙂

    • @kvelez
      @kvelez 10 หลายเดือนก่อน +1

      @@DevLeader Hi, thanks for asking.
      I was sharing it so that people may have it available for changes and also to follow the video more easily.

    • @DevLeader
      @DevLeader  10 หลายเดือนก่อน +1

      @@kvelez much appreciated 🙂 just wanted to double check if there was a question you had to go along with it! I appreciate the share, thanks!