By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,269 Members | 1,506 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,269 IT Pros & Developers. It's quick & easy.

TypeConverter.CreateInstance-Method

P: n/a
Hi,

in the .NET Framework Class Library there is the following text in the
"Remarks"-section:

"Use this method for objects that are immutable, but for which you want to
provide changeable properties."

.... objects that are immutable ... - what does this mean? Can someone please
insert here an example?

thx & bye

Oskar
Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Oskar Vaia wrote:
Hi,

in the .NET Framework Class Library there is the following text in the
"Remarks"-section:

"Use this method for objects that are immutable, but for which you
want to provide changeable properties."

... objects that are immutable ... - what does this mean? Can someone
please insert here an example?


An immutable object is an object who's internal state cannot change after it
has been created. Strings are an example of immutable objects in the .Net
Framework. You can never change the value of an existing String object,
since all its methods return a new String object, leaving the original
object intact.

--
Sven Groot

http://unforgiven.bloghorn.com

Nov 20 '05 #2

P: n/a
Hi Oskar,

A String is immutable, a change will mean that it is written on a new place
and the old one is destroyed when the Garbadge Collecter does his work.

I hope this clears it a little bit?

Cor
Hi,

in the .NET Framework Class Library there is the following text in the
"Remarks"-section:

"Use this method for objects that are immutable, but for which you want to
provide changeable properties."

... objects that are immutable ... - what does this mean? Can someone please insert here an example?

Nov 20 '05 #3

P: n/a
hi,

thx for your answers.
ok, but what does it so mean in the context with the
Typeconverter.CreateInstance-Method?

bye

Oskar
Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.