The most recent content from our members.
If we go to definition of string class in Visual Studio it represent string as sealed class (reference type) as per below screen shot: ![alt text][1] Then after If I tested the following code then it behaves like value type. static void Main(string[] args) { string name = "test"; ChangeName(name); Console.WriteLine(name);…
I am little bit confused between when to use **struct** and when to use **class**. I know basically struct is ***value type*** and class is ***ref type***. So whenever you pass the value type to function it copies whole values to that local function memory and whenever pass objects of class to any function it just passes…
It looks like you're new here. Sign in or register to get started.