473,383 Members | 1,733 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,383 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 1272

"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?
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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...

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.