What is immutable object in asp.net
What is immutable object in asp.net.with example
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Apr 2, 2013, 7:04 AM
Methods which appear to alter a string (Insert, Replace, Remove etc) do in fact produce a new string as neither the length nor content of the existing string can be changed.
Deependra KhangarotPosted Apr 2, 2013, 2:30 AM
The example class is immutable because the Length and Width properties of Rectangle do not use the set keyword.
You can follow below link for more information:
http://weblogs.asp.net/adilakhter/archive/2008/04/16/designing-efficient-immutable-net2-0-objects.aspx
Don't forget to mark useful responses as Answer if they helped you towards a solution.
Satyapriya NayakPosted Apr 2, 2013, 2:26 AM