Click here to Skip to main content
15,909,898 members
Home / Discussions / C#
   

C#

 
GeneralRe: File deletion in C# Pin
gubber23-May-06 1:46
gubber23-May-06 1:46 
QuestionSorting Array of objects Pin
Rizwan Rathore22-May-06 23:37
Rizwan Rathore22-May-06 23:37 
AnswerRe: Sorting Array of objects Pin
User 665822-May-06 23:48
User 665822-May-06 23:48 
GeneralRe: Sorting Array of objects Pin
Rizwan Rathore23-May-06 1:02
Rizwan Rathore23-May-06 1:02 
GeneralRe: Sorting Array of objects Pin
Robert Rohde23-May-06 1:25
Robert Rohde23-May-06 1:25 
GeneralRe: Sorting Array of objects [modified] Pin
Rizwan Rathore23-May-06 5:57
Rizwan Rathore23-May-06 5:57 
GeneralRe: Sorting Array of objects [modified] Pin
Robert Rohde23-May-06 7:43
Robert Rohde23-May-06 7:43 
GeneralRe: Sorting Array of objects [modified] Pin
Rizwan Rathore23-May-06 14:29
Rizwan Rathore23-May-06 14:29 
Hi Sir,
i am trying to do this in this way


public class TextMiner : System.Windows.Forms.Form , IComparable
{
        public Terminology[] word = new Terminology[WORDS];
        private string strValue = "term";
        public int CompareTo(object obj)
	{
		Terminology w = (Terminology) obj;
		return( strValue.CompareTo( w.term ));
	}
        
         public void Indexer()
         {
                 Aray.Sort(word);
         }

}


it compiles without any error but it throws this exception during execution

An unhandled exception of type 'System.InvalidOperationException' occurred in mscorlib.dll

Additional information: Specified IComparer threw an exception.

tell me what i m doing wrong and how i can correct it....
looking forward for help
Regards,
GeneralRe: Sorting Array of objects [modified] Pin
Robert Rohde23-May-06 19:44
Robert Rohde23-May-06 19:44 
GeneralRe: Sorting Array of objects [modified] Pin
Rizwan Rathore23-May-06 22:09
Rizwan Rathore23-May-06 22:09 
GeneralRe: Sorting Array of objects [modified] Pin
Robert Rohde23-May-06 22:24
Robert Rohde23-May-06 22:24 
GeneralRe: Sorting Array of objects [modified] Pin
Rizwan Rathore23-May-06 23:05
Rizwan Rathore23-May-06 23:05 
GeneralRe: Sorting Array of objects [modified] Pin
Robert Rohde23-May-06 23:13
Robert Rohde23-May-06 23:13 
GeneralRe: Sorting Array of objects [modified] Pin
Rizwan Rathore23-May-06 23:40
Rizwan Rathore23-May-06 23:40 
GeneralRe: Sorting Array of objects [modified] Pin
Robert Rohde24-May-06 0:12
Robert Rohde24-May-06 0:12 
GeneralRe: Sorting Array of objects [modified] Pin
Rizwan Rathore24-May-06 0:54
Rizwan Rathore24-May-06 0:54 
AnswerRe: Sorting Array of objects Pin
BoneSoft23-May-06 4:20
BoneSoft23-May-06 4:20 
GeneralRe: Sorting Array of objects Pin
Rizwan Rathore23-May-06 14:11
Rizwan Rathore23-May-06 14:11 
GeneralRe: Sorting Array of objects Pin
BoneSoft23-May-06 15:10
BoneSoft23-May-06 15:10 
GeneralRe: Sorting Array of objects Pin
Robert Rohde23-May-06 19:42
Robert Rohde23-May-06 19:42 
GeneralRe: Sorting Array of objects Pin
BoneSoft24-May-06 1:31
BoneSoft24-May-06 1:31 
GeneralRe: Sorting Array of objects Pin
Rizwan Rathore23-May-06 21:13
Rizwan Rathore23-May-06 21:13 
QuestionNovell GroupWise Pin
NewbieDude22-May-06 23:32
NewbieDude22-May-06 23:32 
QuestionListView.ShowGroups=TRUE [modified] Pin
Greeky22-May-06 23:21
Greeky22-May-06 23:21 
QuestionProblems with HDC Pin
__makaveli__22-May-06 23:16
__makaveli__22-May-06 23:16 

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.