Click here to Skip to main content
15,890,579 members
Home / Discussions / C#
   

C#

 
AnswerRe: does Any on have a Idea Pin
Christian Graus25-Jan-09 14:36
protectorChristian Graus25-Jan-09 14:36 
AnswerRe: does Any on have a Idea Pin
CooperWu25-Jan-09 17:47
CooperWu25-Jan-09 17:47 
QuestionRe: does Any on have a Idea Pin
Eddy Vluggen25-Jan-09 21:18
professionalEddy Vluggen25-Jan-09 21:18 
QuestionOperator Overloading Pin
Butter18525-Jan-09 6:24
Butter18525-Jan-09 6:24 
AnswerRe: Operator Overloading Pin
DaveyM6925-Jan-09 6:49
professionalDaveyM6925-Jan-09 6:49 
AnswerRe: Operator Overloading Pin
Wendelius25-Jan-09 6:53
mentorWendelius25-Jan-09 6:53 
AnswerRe: Operator Overloading Pin
Butter18525-Jan-09 7:02
Butter18525-Jan-09 7:02 
GeneralRe: Operator Overloading Pin
Wendelius25-Jan-09 7:22
mentorWendelius25-Jan-09 7:22 
Ok, and you need to find if two of your class instances are the same. In that case define IComparable interface to your string class and implement CompareTo method. For an example see: http://msdn.microsoft.com/en-us/library/system.icomparable.aspx[^] and http://msdn.microsoft.com/en-us/library/system.icomparable.compareto.aspx[^]

By doing this, you can compare two different instances and be able to say if they are equal or instance1 < instance2 or instance1 > instance2.

The need to optimize rises from a bad design.My articles[^]

GeneralRe: Operator Overloading Pin
Butter18525-Jan-09 8:26
Butter18525-Jan-09 8:26 
QuestionRe: Operator Overloading [modified] Pin
Butter18525-Jan-09 20:41
Butter18525-Jan-09 20:41 
AnswerRe: Operator Overloading Pin
Wendelius26-Jan-09 7:46
mentorWendelius26-Jan-09 7:46 
Questionc# windows datagridview [modified] Pin
s_aslam9825-Jan-09 5:53
s_aslam9825-Jan-09 5:53 
Questioninserting more format into one line in word using C# Pin
Lopy12325-Jan-09 4:32
Lopy12325-Jan-09 4:32 
QuestionRegular Expressions Pin
the_jat25-Jan-09 3:49
the_jat25-Jan-09 3:49 
AnswerRe: Regular Expressions Pin
Guffa25-Jan-09 5:13
Guffa25-Jan-09 5:13 
Questiondiff in need of method overloading * cons overloading Pin
Ali_10024-Jan-09 23:58
Ali_10024-Jan-09 23:58 
AnswerRe: diff in need of method overloading * cons overloading Pin
DaveyM6925-Jan-09 0:12
professionalDaveyM6925-Jan-09 0:12 
QuestionPreventing filedestruction after saving richtextbox contents at program end Pin
fracalifa24-Jan-09 23:31
fracalifa24-Jan-09 23:31 
AnswerRe: Preventing filedestruction after saving richtextbox contents at program end Pin
Wendelius25-Jan-09 0:05
mentorWendelius25-Jan-09 0:05 
GeneralRe: Preventing filedestruction after saving richtextbox contents at program end Pin
fracalifa25-Jan-09 0:26
fracalifa25-Jan-09 0:26 
GeneralRe: Preventing filedestruction after saving richtextbox contents at program end Pin
DaveyM6925-Jan-09 0:32
professionalDaveyM6925-Jan-09 0:32 
AnswerRe: Preventing filedestruction after saving richtextbox contents at program end Pin
fracalifa25-Jan-09 0:59
fracalifa25-Jan-09 0:59 
GeneralRe: Preventing filedestruction after saving richtextbox contents at program end Pin
Wendelius25-Jan-09 0:35
mentorWendelius25-Jan-09 0:35 
GeneralRe: Preventing filedestruction after saving richtextbox contents at program end Pin
fracalifa25-Jan-09 0:56
fracalifa25-Jan-09 0:56 
GeneralRe: Preventing filedestruction after saving richtextbox contents at program end Pin
Wendelius25-Jan-09 1:02
mentorWendelius25-Jan-09 1:02 

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.