473,396 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

IList Contains

Does anybody know how the IList Contains method compares objects when doing
a search through the innerList? For objects stored w/o a key will Contains
make a binary comparion of the stored objects fields?

--

thx
-jsh
Nov 21 '05 #1
2 1666
IList is an interface, the implementation could be specific to a particular
class that implements IList. What class are you talking about?

- Sahil Malik
You can reach me thru my blog at
http://www.dotnetjunkies.com/weblog/sahilmalik

"J Holsinger" <js********@hotmail.com> wrote in message
news:u2**************@TK2MSFTNGP11.phx.gbl...
Does anybody know how the IList Contains method compares objects when doing a search through the innerList? For objects stored w/o a key will Contains make a binary comparion of the stored objects fields?

--

thx
-jsh

Nov 21 '05 #2
Hi Sahil, thanks for responding.

My question is related to the use of IList in the CollectionBase class for a
client server implementation. I don't understand how the .net Framework
stores references to objects in a list class that are unique without the
explicit use of a key, say for example the way HashTable behaves. If I
create a custom strongly type Collection class in a server for a client
custom object based upon the class CollectionBase, I can implement it in
such way that I can always find my custom objects with one line of code.
For instance: FoundObj As CustomObject =
CustomStronglyTypedCollection.Item(CustomStronglyT ypedCollection.Contains(xO
bj)).
Where is the 'handle' or reference for my custom object stored? How would I
know it is unique across a single instance being served in the
CustomStronglyTypedCollection to many clients?
--

thx
-jsh
Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Darren | last post by:
I'm trying to bound a custom object to a combobox using DataSource property. The code works correctly however when the user selects a different value I get a runtime error of NullReferenceException...
4
by: emma middlebrook | last post by:
Hi Straight to the point - I don't understand why System.Array derives from IList (given the methods/properties actually on IList). When designing an interface you specify a contract. Deriving...
0
by: Darren | last post by:
I'm trying to bound a custom object to a combobox using DataSource property. The code works correctly however when the user selects a different value I get a runtime error of NullReferenceException...
3
by: ad | last post by:
Hi, When I studied CSharp, I am confuse by IList, Collection and Array. What is the relationships between them?
1
by: Ldraw | last post by:
I am returning an IList from a WebService Function that contains a custom Class. The class contains ID and Name properties. I can see these in the IList when the data is returned. I tried to use...
7
by: Tom Costanza | last post by:
I have a collection class that inherits from CollectionBase. I want to override the Contains method for the List property. I'm not sure how to do that. Can anyone assist? Thanks in advance,...
6
by: nicolas.rolland | last post by:
Would anyone know the reson why IList<Tdoes not implements IList ?? This results in strange behaviours, like typeof(IList).IsAssignableFrom(typeof(List<string>)) --true...
1
by: wdrone | last post by:
At the risk of sounding like one of the usual morons who claim everything that goes wrong in their code is a bug - I am nearly convinced the following situation is a bug in VB.NET (and if its not it...
2
by: Tony Johansson | last post by:
Hello! The Array class implements these interfaces IClonable, IList, ICollection and IEnumerable. Note only interfaces are inherited and no classes so these interfaces will be implemented in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.