473,473 Members | 1,985 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Help with the Generics List FindAll method

I am just starting to use the generics collection objects and am really
liking them. I am using the List object and want to use the FindAll method
to return a list of items that meets my criteria. The online help does not
have many examples and I am having a hard time figuring out how I need to
write my delegate to do the comparisions and to return my list of items that
meets the criteria set. Is the delegate signature preset or can I define my
own delegate paramaters? Specifically, I have a list of datapoints collected
over time and I want to be able to return a list of items for a particular
timespan. I wasnt to be able to pass into the delegate the begin time and
end time and possibly a few other evaluation criteria and then get back a
list of items that meets this criteria. Could someone give me an example of
how to do this?
Nov 16 '05 #1
1 1867
oops - the system told me that my message did not post so I posed it again.
See other message for replies.

"Michael Rockwell" wrote:
I am just starting to use the generics collection objects and am really
liking them. I am using the List object and want to use the FindAll method
to return a list of items that meets my criteria. The online help does not
have many examples and I am having a hard time figuring out how I need to
write my delegate to do the comparisions and to return my list of items that
meets the criteria set. Is the delegate signature preset or can I define my
own delegate paramaters? Specifically, I have a list of datapoints collected
over time and I want to be able to return a list of items for a particular
timespan. I wasnt to be able to pass into the delegate the begin time and
end time and possibly a few other evaluation criteria and then get back a
list of items that meets this criteria. Could someone give me an example of
how to do this?

Nov 16 '05 #2

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

Similar topics

3
by: Michael Rockwell | last post by:
I am new to using C# generics and I am liking what I am finding. However the examples in online help are lacking. Can someone help me with the FindAll method of the generic List class? As I...
20
by: Keith Elder | last post by:
I ran into a unique situation today whereby I have a core library that uses generics to return users from Active Directory. Example: List<ADUser> users = ADUser.GetByName("First", "Last"); ...
4
by: Cedric Rogers | last post by:
I wasn't sure if I could do this. I believe I am stretching the capability of what generics can do for me but here goes. I have a generic delegate defined as public delegate bool...
5
by: David Longnecker | last post by:
I'm working to create a base framework for our organization for web and client-side applications. The framework interfaces with several of our systems and provides the business and data layer...
7
by: Abhishek | last post by:
Hi I am using a generic list in my program to have a list of objects stored. I want to compare all the objects in this list with object of another class and find all the objects which meet the...
1
by: hardieca | last post by:
Hi, I have a list of sections that contain a parent section ID field that indicates hierarchy throughout a website. I want to filter out all non- root level sections, as indicated by a section...
1
by: Doug | last post by:
Hi, I have a collection of objects and I need to compare each item in the collection to see if it's a match on any or all of the others. I have stored my collection in an item like so: ...
3
by: Fresno Bob | last post by:
I have a generic collection of objects and I would like to find the object by one of it's properties e.g. I would like something with the functionality of something like...
2
by: hcaptech | last post by:
This is my Test.can you help me ? 1.Which of the following statement about C# varialble is incorrect ? A.A variable is a computer memory location identified by a unique name B.A variable's name...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.