Click here to Skip to main content
15,906,645 members
Home / Discussions / C#
   

C#

 
AnswerRe: csc not recognised Pin
Ennis Ray Lynch, Jr.12-May-08 10:42
Ennis Ray Lynch, Jr.12-May-08 10:42 
AnswerRe: csc not recognised Pin
Abhijit Jana12-May-08 19:02
professionalAbhijit Jana12-May-08 19:02 
QuestionTest is a form is closed Pin
baranils12-May-08 10:14
baranils12-May-08 10:14 
AnswerRe: Test is a form is closed [modified] Pin
Anthony Mushrow12-May-08 10:36
professionalAnthony Mushrow12-May-08 10:36 
GeneralRe: Test is a form is closed Pin
baranils12-May-08 18:58
baranils12-May-08 18:58 
AnswerRe: Test is a form is closed Pin
Christian Graus12-May-08 12:08
protectorChristian Graus12-May-08 12:08 
Questionint[] reference issue Pin
shamidi12-May-08 9:43
shamidi12-May-08 9:43 
AnswerRe: int[] reference issue Pin
Ed.Poore12-May-08 10:13
Ed.Poore12-May-08 10:13 
shamidi wrote:
no looping is HIGHLY preferred.

Depends on what level you want that to occur on. Using LINQ there's no "looping" on the surface but it'll translate into a loop.

You have to face facts, you've got an array of data, you have to loop to do anything useful with it.

In response to your first point, Equals is comparing the addresses but because you're initialising them independently they are in fact in two different blocks of memory, thus not the same.

It would return true (I think) if you did:
int[] x = new int[10] { ... };
int[] y = x;

return x.Equals(y);


See that last line? What you've just done there is a coding horror (check the forums), your comparing a bool to return a bool WTF | :WTF: You can simplify the code (and the resulting assembler) by doing what I did.


I doubt it. If it isn't intuitive then we need to fix it. - Chris Maunder

GeneralRe: int[] reference issue Pin
shamidi12-May-08 10:33
shamidi12-May-08 10:33 
GeneralRe: int[] reference issue Pin
Ed.Poore12-May-08 12:28
Ed.Poore12-May-08 12:28 
AnswerRe: int[] reference issue Pin
#realJSOP12-May-08 10:16
professional#realJSOP12-May-08 10:16 
GeneralRe: int[] reference issue Pin
shamidi12-May-08 10:35
shamidi12-May-08 10:35 
GeneralRe: int[] reference issue Pin
Anthony Mushrow12-May-08 10:41
professionalAnthony Mushrow12-May-08 10:41 
GeneralRe: int[] reference issue Pin
#realJSOP12-May-08 10:50
professional#realJSOP12-May-08 10:50 
AnswerRe: int[] reference issue Pin
Guffa12-May-08 21:28
Guffa12-May-08 21:28 
GeneralRe: int[] reference issue Pin
#realJSOP13-May-08 1:20
professional#realJSOP13-May-08 1:20 
JokeRe: int[] reference issue Pin
Guffa13-May-08 2:05
Guffa13-May-08 2:05 
AnswerRe: int[] reference issue Pin
Le centriste14-May-08 6:24
Le centriste14-May-08 6:24 
QuestionHow to retrive the value? Pin
Luckie12-May-08 9:04
Luckie12-May-08 9:04 
AnswerRe: How to retrive the value? Pin
Ennis Ray Lynch, Jr.12-May-08 9:09
Ennis Ray Lynch, Jr.12-May-08 9:09 
GeneralRe: How to retrive the value? Pin
Luckie12-May-08 9:18
Luckie12-May-08 9:18 
AnswerRe: How to retrive the value? Pin
led mike12-May-08 9:18
led mike12-May-08 9:18 
GeneralRe: How to retrive the value? Pin
Luckie12-May-08 9:26
Luckie12-May-08 9:26 
GeneralRe: How to retrive the value? Pin
KaptinKrunch12-May-08 10:31
KaptinKrunch12-May-08 10:31 
GeneralRe: How to retrive the value? Pin
led mike12-May-08 10:32
led mike12-May-08 10:32 

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.