Click here to Skip to main content
15,894,539 members
Home / Discussions / C#
   

C#

 
GeneralRe: menu item with image Pin
KingTermite23-May-03 14:14
KingTermite23-May-03 14:14 
GeneralC# Dockable/Floating Menu Pin
NHM23-May-03 3:14
NHM23-May-03 3:14 
GeneralDebug this!!!!!! Pin
nosmij23-May-03 1:36
nosmij23-May-03 1:36 
GeneralRe: Debug this!!!!!! Pin
James T. Johnson24-May-03 9:05
James T. Johnson24-May-03 9:05 
GeneralActiveX in C# Pin
james4723-May-03 1:32
james4723-May-03 1:32 
GeneralRe: ActiveX in C# Pin
J. Dunlap24-May-03 13:08
J. Dunlap24-May-03 13:08 
Generalobject.equals Pin
Andrei Matei23-May-03 1:28
Andrei Matei23-May-03 1:28 
GeneralRe: object.equals Pin
leppie23-May-03 7:18
leppie23-May-03 7:18 
Andrei Matei wrote:
Is there a better (more elegant) way?

Not really, but if it gets more complex, have a look at implementing the IComparer interface. This will allow sorting and other goodies too. Also remember Equals(object) does not make if (a == b) true as well. You will need to override the operator for that, or call a.Equals(b).

Cheers Smile | :)

<a TITLE="See my user info" href=http://www.codeproject.com/script/profile/whos_who.asp?id=38829>leppie<a>::<a TITLE="Go to all articles  written by me" href=http://www.codeproject.com/script/articles/list_articles.asp?userid=38829>AllocCPArticle</a>(<a TITLE="Go to my latest, greatest article!" href=http://www.codeproject.com/useritems/dfamachine.asp >Generic DFA State Machine for .NET</a>);

GeneralMedia Service programming with C# Pin
dmhorse22-May-03 21:39
dmhorse22-May-03 21:39 
GeneralChanging List View Highligh:confused: Pin
azusakt22-May-03 20:03
azusakt22-May-03 20:03 
GeneralRe: Changing List View Highligh:confused: Pin
J. Dunlap22-May-03 20:08
J. Dunlap22-May-03 20:08 
GeneralRe: Changing List View Highligh:confused: Pin
Carlos H. Perez22-May-03 21:17
Carlos H. Perez22-May-03 21:17 
GeneralRe: Changing List View Highligh:confused: Pin
Oyvind Bratland23-May-03 0:28
Oyvind Bratland23-May-03 0:28 
GeneralRe: Changing List View Highligh:confused: Pin
Carlos H. Perez23-May-03 17:32
Carlos H. Perez23-May-03 17:32 
GeneralRe: Changing List View Highligh:confused: Pin
azusakt23-May-03 15:20
azusakt23-May-03 15:20 
GeneralRe: Changing List View Highligh:confused: Pin
Carlos H. Perez23-May-03 17:31
Carlos H. Perez23-May-03 17:31 
GeneralXML Loading Problem Pin
Nick Parker22-May-03 17:29
protectorNick Parker22-May-03 17:29 
GeneralRe: XML Loading Problem Pin
Philip Fitzsimons23-May-03 2:55
Philip Fitzsimons23-May-03 2:55 
GeneralRe: XML Loading Problem Pin
Nick Parker23-May-03 5:21
protectorNick Parker23-May-03 5:21 
GeneralRe: XML Loading Problem Pin
cdehelean23-May-03 2:56
cdehelean23-May-03 2:56 
GeneralQuestion About Sockets Pin
jtmtv1822-May-03 16:04
jtmtv1822-May-03 16:04 
GeneralRe: Question About Sockets Pin
Burt Harris23-May-03 18:44
Burt Harris23-May-03 18:44 
GeneralRe: Question About Sockets Pin
jtmtv1823-May-03 20:28
jtmtv1823-May-03 20:28 
GeneralNetscape / Winamp / SAPrefs Style options dialog Pin
dazinith22-May-03 11:23
dazinith22-May-03 11:23 
GeneralDateTimePicker and TextBox Formatting - C# Windows Forms Pin
sajecw22-May-03 8:07
sajecw22-May-03 8:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.