C# Tutorial | Value Type Vs Reference Type in C#

preview_player
Показать описание
This video will give you complete training in Value Types Vs Reference Types in C#

How the assignment of ValueType and RefenceType works:

Many times until runtime we don’t know the kind of data our variable will have…In this kind of situation, we have to use the “object” data type.
The object is a reference data type that can store any kind of value including value types and reference types.
_________________________________________________________________________________________________

For Complete C# Online Training Please visit:

Mr. Sandeep Soni is a famous Corporate Tainer in Microsoft Azure AZ-103, AZ-203, AZ-300, AZ-301, AZ-400, AZ-500, Containerization in Docker, Microservices - Kubernetes and Azure Service Fabric and more...

For any course-related queries, reach us @ +91 8555823343 / +91 8008327000 Kashmira Shah
Please leave your comment about the videos.

For more updates on courses and tips follow us on:
Рекомендации по теме
Комментарии
Автор

I have been searching for the answer to this question in many places, everywhere it's mentioned that if a class contains an int, that it will be stored on the stack, even in an interview I got rejected by the same question. So thank you very much for the nice explanation, I think I will never forget this thing after watching this video, thank you very much sir.

angelanaya
Автор

This helped clarify some things for me. Thank you.

HansenHarmonyHands
Автор

Value Type and Reference types are explained very well.
Thanks a lot, sir.

gnaneshwar_
Автор

Hello Sir . Great video n easy to follow . Thanks for that 🙏 I have an question on same .
Where exactly in memory does nullable type stored ?? Say for example : int? i=null; How it works behind hood . Could you pls help me on this . Thanks in advance .

kiranshetty
Автор

I read somewhere if we assign one reference variable to another reference variable it copy the address


static void Main(string[] args)
{
string a = "ujjwal";
string b = a;

a = "mangesh";
Console.WriteLine("b - " + b);
b = "test";
Console.WriteLine("a - " + a);

Console.Read();
}

the output of the this program is

b - ujjwal
a - mangesh

Can you please explain this?

ujjwalkhairnar