473,387 Members | 1,423 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,387 software developers and data experts.

.Net Framework 2.0 Collection classes with Delegates?

Is is just my imagination or was there a Beta or VS2005 where an overload
Arrayist.Sort(Delegate d) existed? Now Iam using Beta 2 and cannot find it
anymore.
I think that delegates are a very good alternative instead of using
IComparable and stuff. Why do I have to create a class everytime if I just
need a single callback function?
So why is it gone?
Jul 28 '05 #1
2 1273

"cody" <de********@gmx.de> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Is is just my imagination or was there a Beta or VS2005 where an overload
Arrayist.Sort(Delegate d) existed? Now Iam using Beta 2 and cannot find it
anymore.
I think that delegates are a very good alternative instead of using
IComparable and stuff. Why do I have to create a class everytime if I just
need a single callback function?
So why is it gone?


Take a look at the Generic version of ArrayList - List and the Comparison
delegate.

Willy.
Jul 29 '05 #2
Yes your are right, I must have somehow overlooked it, sorry :)
"Willy Denoyette [MVP]" <wi*************@telenet.be> schrieb im Newsbeitrag
news:Oj**************@tk2msftngp13.phx.gbl...

"cody" <de********@gmx.de> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Is is just my imagination or was there a Beta or VS2005 where an overload
Arrayist.Sort(Delegate d) existed? Now Iam using Beta 2 and cannot find
it
anymore.
I think that delegates are a very good alternative instead of using
IComparable and stuff. Why do I have to create a class everytime if I
just
need a single callback function?
So why is it gone?


Take a look at the Generic version of ArrayList - List and the Comparison
delegate.

Willy.

Jul 30 '05 #3

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

Similar topics

10
by: Mart | last post by:
What class does everyone out there use if they want to store a set of values efficiently? In java I use a HashSet, but there is no equivalent in C#. Even worse, the lowest level interface to...
3
by: Bob Rock | last post by:
Why doesn't this code compile??? Why can I call Invoke on .NET Framework defined delegates and not on my own. using System; namespace DelegatesTest { public delegate void MyDelegate();
3
by: Robert Batt | last post by:
Hello, I'm trying to modularize the code in my forms by putting some procedures and delegates in a seperate class. However I try to put a delegate with the following header in a class. Public...
6
by: rodchar | last post by:
hey all, Dim _oItems As Outlook.Items Dim oInbox As Outlook.MAPIFolder = oNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox) _oItems = oInbox.Items I can iterate thru this with a...
2
by: cody | last post by:
Is is just my imagination or was there a Beta or VS2005 where an overload Arrayist.Sort(Delegate d) existed? Now Iam using Beta 2 and cannot find it anymore. I think that delegates are a very good...
3
by: Dave | last post by:
Please - anyone that can help. I am getting confusing results while trying to expose a collection from a web service. I have a webservice in which a web method accepts a collection as a...
4
by: R. MacDonald | last post by:
Hello, all, I have a .NET application (VB) that passes the address of a delegate to unmanaged code in a DLL. The unmanaged code then uses the delegate as a call-back. This seems to work...
14
by: Jeff S. | last post by:
In a Windows Forms application I plan to have a collection of structs - each of which contains a bunch of properties describing a person (e.g., LastName, FirstName, EmployeeID, HomeAddress,...
12
by: PGP | last post by:
I notice that local classes are not supported in C#. Could you please discuss why this is so? Was this a bad coding practice to begin with?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.