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
you are an amazing teacher!!!
Your way of explanation is just great ...Thanks a lot !
String is a reference type in C# since they can be huge and need to be stored on the heap.
That was very helpful, thank you
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
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?
note to self: copy of the variable if sent by value (leaps and bounds, blowing my mind, understanding but tons of practice is necessary)
What happen if you make “jl” null in the increase method