RECORD TYPES | Exploring C# and DOTNET | Rahul Nath

Sdílet
Vložit
  • čas přidán 20. 06. 2024
  • Hey👋 Record types in C# provide a concise and expressive way to define immutable data structures. They automatically generate boilerplate code for value equality, deconstruction, and common methods like `Equals,` `GetHashCode,` and `ToString`
    In this video lets,
    • Dive into Record Types
    • Features of Record Types
    • Pitfalls with Record Types
    We will progressively build up Record Types from a simple .NET class type while understanding and exploring the different features that they provide.
    We will learn about
    • Positional Syntax
    • Non-destructive Mutation
    • Built-in Formatting For Display
    • Generated Deconstruct Method
    00:00 Introduction
    00:31 Record Types
    00:47 Class
    02:02 Defining Record Type
    03:08 Constructor
    03:53 Primary Constructors
    04:35 Immutability
    05:40 Positional Syntax
    07:01 Non-destructive mutation
    08:42 Formatting For Display
    09:45 Deconstruct
    10:58 Compiler Generated Code
    12:24 Value Equality
    14:52 Conclusion
    🔗 Record Types - learn.microsoft.com/en-us/dot...
    Additional Watching
    📹 ASP Series - bit.ly/asp-net-core-series
    📹Azure Series - bit.ly/azure-series
    📹AWS Series - bit.ly/aws-net-series
    📹RabbitMQ Series - bit.ly/rabbitmq-net-series
    Come say hi! ✋
    🎙️Uses - www.rahulpnath.com/uses
    🌍Blog - www.rahulpnath.com/
    ✉ Subscribe to my Newsletter - www.rahulpnath.com/subscribe
    🐦Twitter - / rahulpnath
    📸Instagram - / rahulpnath
    #dotnet #csharp
  • Jak na to + styl

Komentáře • 16

  • @EntangledFrequency
    @EntangledFrequency Před měsícem

    Very informative and clearly explained. The examples are very helpful to see the different aspects and uses of the language and intent. Great work!

  • @CSharpProdigy
    @CSharpProdigy Před 3 měsíci +3

    You have done a great work in explaining Record types in details. I will like to see the differences when working with Struct

    • @RahulNath
      @RahulNath  Před 3 měsíci

      Thank you and Great suggestion! Sure will cover more about it soon.

  • @skshahnawaz-ulhaque
    @skshahnawaz-ulhaque Před 3 měsíci

    Very useful content, thanks!

  • @ravindranathanm636
    @ravindranathanm636 Před 3 měsíci

    Good presentation indeed. Congrats!!!

  • @roycekuma839
    @roycekuma839 Před 3 měsíci +1

    Really informative

    • @RahulNath
      @RahulNath  Před 3 měsíci

      Glad you liked it Royce!!

  • @DeepakShaw
    @DeepakShaw Před 3 měsíci

    your all videos are simply fantastic... keep it up.. Many thanks.

    • @RahulNath
      @RahulNath  Před 3 měsíci

      Thank you so much Deepak😀

  • @centrilla1169
    @centrilla1169 Před 3 měsíci

    Good stuff bro!!.

  • @isaacohibor3278
    @isaacohibor3278 Před 3 měsíci

    great

  • @lemuriantechpriestenginsee7590

    Great video. I just do not see a real world example on where to apply this.