C# TryGetValue method on dictionaries

Поділитися
Вставка
  • Опубліковано 8 лип 2024
  • 🔥 NEED to get some VALUES out of your DICTIONARY? Well, then you should be using TRYGETVALUE! Probably the best way to work with DICTIONARIES! Check this out!
    🚀 C# Progress Academy - Become a job-ready C# and Angular web developer to land your dream developer role: bit.ly/45vbPUg
    We'll make sure to turn you into a true developer in no time!
    Timestamps:
    00:00 Introduction
    00:23 The dictionary we will be using
    00:42 What is trygetvalue?
    01:13 Using trygetvalue
    03:17 Chec this out!
    03:43 What else can we do with trygetvalue?
    06:53 Thanks for watching!
    C# TryGetValue method on dictionaries
    So, what is C#?
    C# (pronounced "See Sharp") is a modern, object-oriented, and type-safe programming language. C# enables developers to build many types of secure and robust applications that run in .NET. C# has its roots in the C family of languages and will be immediately familiar to C, C++, Java, and JavaScript programmers. This tour provides an overview of the major components of the language in C# 8 and earlier. If you want to explore the language through interactive examples, try the introduction to C# tutorials.
    C# is an object-oriented, component-oriented programming language. C# provides language constructs to directly support these concepts, making C# a natural language in which to create and use software components. Since its origin, C# has added features to support new workloads and emerging software design practices. At its core, C# is an object-oriented language. You define types and their behavior.
    And what is TRYGETVALUE?
    Gets the value associated with the specified key.
    This method combines the functionality of the ContainsKey method and the Item[] property.
    If the key is not found, then the value parameter gets the appropriate default value for the type TValue; for example, 0 (zero) for integer types, false for Boolean types, and null for reference types.
    Use the TryGetValue method if your code frequently attempts to access keys that are not in the dictionary. Using this method is more efficient than catching the KeyNotFoundException thrown by the Item[] property.
    This method approaches an O(1) operation.
    To learn more, make sure to watch the video, and we promise you that you'll become a better developer by the end of the video! Have fun!
    And thank you LAKEY INSPIRED for these amazing songs that we use in all our videos! @LAKEYINSPIRED
    #csharp #coding #tutorial #learn #microsoft #net #trygetvalue #dictionary
    TAGS
    c#,.net,c-sharp,csharp,programming,visual studio,c sharp,learn c#,c# programming,c# tutorial,c# for beginners,learn c# programming,c# course,tutorial,coding,core,software engineering,development,how to code,software development,dictionary,dotnet,dot net,c# programming language,c# dictionary,.net core,learn how to,c# trygetvalue,step by step,intersectwith hashset c#,asp.net core,microsoft mvp,how to use hashset in c#,cache in asp.net core,trygetvalue
    TutorialsEU offers you free video tutorials about programming and development for complete beginners up to experienced programmers.
    This includes C#, Unity, Python, Android, Kotlin, Machine Learning, etc.
    Stay tuned and subscribe to tutorialsEU: goo.gl/rBFh3x
    C#: / @tutorialseuc
    Facebook: / tutorialseu-1093802040...
    LinkedIn: / tutorialseu
    Discord: / discord

КОМЕНТАРІ • 2

  • @tutorialsEUC
    @tutorialsEUC  10 місяців тому +1

    🚀 C# Progress Academy - Become a job-ready C# and Angular web developer to land your dream developer role: bit.ly/45vbPUg

  • @Mikeleleleeee
    @Mikeleleleeee Рік тому +1

    thanks a lot