Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

explain "instant member"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MagicKat - 17 Jul 2007 13:22 GMT
Can you explain what they mean by "instant member"  for instance, in the
article about arraylists, it says it's thread safe but it's instant members
are not. What does that mean?

http://msdn2.microsoft.com/en-us/library/system.collections.arraylist.aspx
Hans Kesting - 17 Jul 2007 14:30 GMT
> Can you explain what they mean by "instant member"  for instance, in
> the article about arraylists, it says it's thread safe but it's
> instant members are not. What does that mean?
>
> http://msdn2.microsoft.com/en-us/library/system.collections.arraylist.
> aspx

It's not "instant" (as in "immediate"), it's "instance", meaning you need
to have an (instance of an) object to access that method.
See the "Add" method (and most of the other methods for ArrayList)

The opposite is "static" (I think it's "Shared" in VB) where you don't need
an instance. See the "ReadOnly" method and a couple of others.

Hans Kestin
PvdG42 - 17 Jul 2007 14:32 GMT
> Can you explain what they mean by "instant member"  for instance, in the
> article about arraylists, it says it's thread safe but it's instant
> members are not. What does that mean?
>
> http://msdn2.microsoft.com/en-us/library/system.collections.arraylist.aspx

The term you refer to is "instance member". The caution in the cited
article, "Any instance members are not guaranteed to be thread safe", refers
to the fact that you can create an ArrayList to hold any "type", and that
you need to refer to the class definition for a given type to determine if
that type is thread safe.
cmay - 18 Jul 2007 00:36 GMT
It isn't "instant" members, it is "instance" members.

Instance members are members that are not shared (static).

So if the method is not shared/static, it is not thread safe.

> Can you explain what they mean by "instant member"  for instance, in the
> article about arraylists, it says it's thread safe but it's instant members
> are not. What does that mean?
>
> http://msdn2.microsoft.com/en-us/library/system.collections.arraylist...

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.