Last post Dec 29, 2013 10:09 AM by anjankant
Jan 08, 2011 11:05 AM|firingnow|LINK
I know that in case of immutable objects the changed values will be stored in a new memory location. But I'm not sure what will happen to the previous memory location... will it exist with the old values or will it get deleted???
.net C# jobs
C# 2005 Generics
@ C# process copy
.Net 2.0 c# .Net 2.0 sp2
.Net 2.0 c# and Encryption
.net Compact framework 3.5
asp.net c# 3.5 microsoft adcneter api version 3.0
c# 3.5 listview
C#.NET 3.5 Windows Service Permission Issue
Asp.net 2.0 C# Sql Server
c# abstract class constraint generics
ASP.NET 2.0 Providers ProfileBase MembershipUser C#
c# 2.0 ASP.NET
Jan 08, 2011 12:52 PM|Miodrag Zivkovic|LINK
In general, the garbage collector takes care about all objects for which there are no valid references.
The same mechanism is valid for all immutable objects.
Dec 29, 2013 10:09 AM|anjankant|LINK
Mutable string can change state of mutable string. String builder is the best example of mutable string in C# (ASP.Net).
StringBuilder sbTech = new StringBuilder();
Immutable string:- We can not change state of immutable string. String is example of immutable string, I am providing namespaces to use immutable and mutable in C# classesas following:
We have to import `system.text` string builder for mutable and `system` namespace for using immutable "string". I have provided article which explains step by step