9.12 Passing by Reference vs. Value - Learning C#

Поделиться
HTML-код
  • Опубликовано: 13 сен 2024
  • In this video, I explain the difference between types that are passed by reference between parts of our programs, and those which are passed by value.
    This video is part of the series "Learning C#: Introduction to Computer Programming for Designers", taught by @garciadelcastillo on @ParametricCamp.
    📝Course playlist: • Learning C#: Introduct...
    💻Code: github.com/Par...
    Follow:
    📺 / parametriccamp
    📷 / parametriccamp
    🐦 / parametriccamp
    💻github.com/Par...
    📷🕺 / garciadelcastillo
    🐦🕺 / garciadelcasti

Комментарии • 8

  • @alainleclerc4523
    @alainleclerc4523 Год назад +1

    you are an amazing teacher!!!

  • @hagarsamy748
    @hagarsamy748 6 месяцев назад

    Your way of explanation is just great ...Thanks a lot !

  • @IrahCy
    @IrahCy 3 года назад +4

    String is a reference type in C# since they can be huge and need to be stored on the heap.

  • @frelle6100
    @frelle6100 2 года назад

    That was very helpful, thank you

  • @BijouBakson
    @BijouBakson 2 года назад +2

    In C# what you're referring to as primitive values is called: simple value types data. Structs & Enums are also value type datas(just not simple value types). Strings are reference types. We are supposed to create an instance of strings but the creation of a string instance is done in the background - it's a syntactic sugar. Thanks for amazing work

  • @aakashaggarwal685
    @aakashaggarwal685 Год назад

    Hi, I am learning C# from your playlist and its been very helpful. I know a bit of python and I wanted to know if what you described as passed by values and passed by references a similar concept to mutability and immutability respectively or are they conceptually different?

  • @michaelwickerson4862
    @michaelwickerson4862 3 года назад

    note to self: copy of the variable if sent by value (leaps and bounds, blowing my mind, understanding but tons of practice is necessary)

  • @rvddan4203
    @rvddan4203 2 года назад

    What happen if you make “jl” null in the increase method