Home  |  Index  |  Dotnet4all Snippets  |  Submit resources
About  |  Mail us  
Dotnet4all Logo

  TypeConverter.CreateInstance-Method (Tuesday, December 21, 2004)




Found the following interesting discussion in the Newsgroups:

TypeConverter.CreateInstance-Method
by:Oskar Vaia

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


 Reply:
by:Sven Groot

 
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



 Reply:
by:Cor Ligthert

 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


 Reply:
by:Oskar Vaia

 hi,

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

bye

Oskar








0 Comments:

Post a Comment

 
Previous Posts
    - vb.net & word
    - How to let GUI application write output to command...
    - Copy object with .Net?
    - Find the cursor position in a textbox
    - Extracting Image Metadata
    - NTFS Folder Permissions
    - To suspend the events
    - Get network status through WMI
    - Big red cross in DataGrid.. ?
    - Check Windows Services are still running OK

Archives
    - 10/03/2004 - 10/10/2004
    - 10/10/2004 - 10/17/2004
    - 10/17/2004 - 10/24/2004
    - 10/24/2004 - 10/31/2004
    - 10/31/2004 - 11/07/2004
    - 11/21/2004 - 11/28/2004
    - 11/28/2004 - 12/05/2004
    - 12/05/2004 - 12/12/2004
    - 12/12/2004 - 12/19/2004
    - 12/19/2004 - 12/26/2004
    - 12/26/2004 - 01/02/2005
    - 01/23/2005 - 01/30/2005
    - 01/01/2006 - 01/08/2006
    - 09/24/2006 - 10/01/2006

Disclaimer & Terms of Use  | DotNet4All.Com concept & © 2004 - 2007 by  Zelders²  - Holland