Click here to Skip to main content
15,925,602 members
Home / Discussions / C#
   

C#

 
GeneralRe: SortedList - KeyValuePair - InvalidCastException Pin
dennycrane21-Apr-08 9:32
dennycrane21-Apr-08 9:32 
GeneralRe: SortedList - KeyValuePair - InvalidCastException Pin
Pete O'Hanlon21-Apr-08 9:39
mvePete O'Hanlon21-Apr-08 9:39 
GeneralRe: SortedList - KeyValuePair - InvalidCastException Pin
dennycrane21-Apr-08 9:46
dennycrane21-Apr-08 9:46 
GeneralRe: SortedList - KeyValuePair - InvalidCastException Pin
carbon_golem21-Apr-08 9:18
carbon_golem21-Apr-08 9:18 
GeneralRe: SortedList - KeyValuePair - InvalidCastException Pin
carbon_golem21-Apr-08 9:19
carbon_golem21-Apr-08 9:19 
GeneralRe: SortedList - KeyValuePair - InvalidCastException Pin
carbon_golem21-Apr-08 9:23
carbon_golem21-Apr-08 9:23 
GeneralRe: SortedList - KeyValuePair - InvalidCastException Pin
dennycrane21-Apr-08 9:29
dennycrane21-Apr-08 9:29 
GeneralRe: SortedList - KeyValuePair - InvalidCastException Pin
carbon_golem21-Apr-08 9:39
carbon_golem21-Apr-08 9:39 
I'm not going to write code for you, call it tough love.

Again, I'll write pseudo code for you, you're supposed to be writing it to learn.
using SortedList, in this case you can go through by INDEX and check to see if the elements that life in the INDEXES match.

for(0 to elements){
if a[index] != b[index], return false.
}
return true.

Hope this helps.

"Run for your life from any man who tells you that money is evil. That sentence is the leper's bell of an approaching looter." --Ayn Rand

GeneralRe: SortedList - KeyValuePair - InvalidCastException Pin
dennycrane21-Apr-08 9:45
dennycrane21-Apr-08 9:45 
GeneralRe: SortedList - KeyValuePair - InvalidCastException Pin
carbon_golem21-Apr-08 9:57
carbon_golem21-Apr-08 9:57 
GeneralRe: SortedList - KeyValuePair - InvalidCastException Pin
dennycrane21-Apr-08 10:05
dennycrane21-Apr-08 10:05 
GeneralXml Serialization Pin
manustone21-Apr-08 7:28
manustone21-Apr-08 7:28 
GeneralRe: Xml Serialization Pin
Judah Gabriel Himango21-Apr-08 10:12
sponsorJudah Gabriel Himango21-Apr-08 10:12 
GeneralRe: Xml Serialization Pin
manustone21-Apr-08 10:56
manustone21-Apr-08 10:56 
GeneralCubic Bezier Question Pin
Richard Blythe21-Apr-08 6:10
Richard Blythe21-Apr-08 6:10 
GeneralRe: Cubic Bezier Question Pin
carbon_golem21-Apr-08 6:42
carbon_golem21-Apr-08 6:42 
QuestionSocket.Send for sending HTML website to Client socket Pin
indogerman21-Apr-08 4:58
indogerman21-Apr-08 4:58 
GeneralRe: Socket.Send for sending HTML website to Client socket Pin
Anthony Mushrow21-Apr-08 5:48
professionalAnthony Mushrow21-Apr-08 5:48 
GeneralRe: Socket.Send for sending HTML website to Client socket Pin
indogerman21-Apr-08 23:19
indogerman21-Apr-08 23:19 
Questionhow to reconnect a usb port Pin
Joshua8221-Apr-08 4:45
Joshua8221-Apr-08 4:45 
AnswerRe: how to reconnect a usb port Pin
Dave Kreskowiak21-Apr-08 8:47
mveDave Kreskowiak21-Apr-08 8:47 
GeneralRe: how to reconnect a usb port Pin
Spacix One21-Apr-08 8:57
Spacix One21-Apr-08 8:57 
GeneralRe: how to reconnect a usb port Pin
Joshua8221-Apr-08 9:15
Joshua8221-Apr-08 9:15 
Generalconverting c#.net code to portable format (standalone exe) Pin
Ashish Sehajpal21-Apr-08 4:42
Ashish Sehajpal21-Apr-08 4:42 
GeneralRe: converting c#.net code to portable format (standalone exe) Pin
Pete O'Hanlon21-Apr-08 5:03
mvePete O'Hanlon21-Apr-08 5:03 

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.