Click here to Skip to main content
15,927,921 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Any fast way to do Array.IndexOf(Of Integer)() without DLL's Pin
supercat98-Nov-08 9:37
supercat98-Nov-08 9:37 
GeneralRe: Any fast way to do Array.IndexOf(Of Integer)() without DLL's Pin
Kevin McFarlane8-Nov-08 9:43
Kevin McFarlane8-Nov-08 9:43 
GeneralRe: Any fast way to do Array.IndexOf(Of Integer)() without DLL's Pin
Luc Pattyn8-Nov-08 2:49
sitebuilderLuc Pattyn8-Nov-08 2:49 
GeneralRe: Any fast way to do Array.IndexOf(Of Integer)() without DLL's Pin
Mark Salsbery8-Nov-08 6:15
Mark Salsbery8-Nov-08 6:15 
GeneralRe: Any fast way to do Array.IndexOf(Of Integer)() without DLL's Pin
supercat98-Nov-08 9:25
supercat98-Nov-08 9:25 
GeneralRe: Any fast way to do Array.IndexOf(Of Integer)() without DLL's Pin
Luc Pattyn8-Nov-08 12:36
sitebuilderLuc Pattyn8-Nov-08 12:36 
GeneralRe: Any fast way to do Array.IndexOf(Of Integer)() without DLL's Pin
supercat98-Nov-08 14:08
supercat98-Nov-08 14:08 
GeneralRe: Any fast way to do Array.IndexOf(Of Integer)() without DLL's Pin
Luc Pattyn8-Nov-08 15:38
sitebuilderLuc Pattyn8-Nov-08 15:38 
Hi,

1.
Code using GetEnumerator might go without locks and trust an Exception is thrown when the collection gets changed somehow (e.g. by another thread, possibly by someone else's code). So there is some ease of use in such a case (as there is for the author of the collection's enumerator itself).

2.
The collection classes are not perfect indeed. This is partly due to the fact that some of them got invented before C# offered generics. Several 1.x methods/properties return arrays and special kinds of lists (e.g. TabControl.TabPages) where a simple List< T> would do, and would be easier to handle. Also I am not fond about the choosen names (as in SortedList which is a Dictionary, not a List).

3.
You are right about the weak delegate stuff. I trust you've read this article[^] on the subject?

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Fixturized forever. Confused | :confused:


GeneralRe: Any fast way to do Array.IndexOf(Of Integer)() without DLL's Pin
supercat99-Nov-08 6:17
supercat99-Nov-08 6:17 
GeneralRe: Any fast way to do Array.IndexOf(Of Integer)() without DLL's Pin
Luc Pattyn9-Nov-08 7:57
sitebuilderLuc Pattyn9-Nov-08 7:57 
GeneralRe: Any fast way to do Array.IndexOf(Of Integer)() without DLL's [modified] Pin
supercat99-Nov-08 15:29
supercat99-Nov-08 15:29 
AnswerRe: Any fast way to do Array.IndexOf(Of Integer)() without DLL's Pin
Mark Churchill9-Nov-08 12:44
Mark Churchill9-Nov-08 12:44 
GeneralRe: Any fast way to do Array.IndexOf(Of Integer)() without DLL's Pin
supercat99-Nov-08 15:50
supercat99-Nov-08 15:50 
QuestionI am a novice at this, where can I post a job for .net developer? Pin
PhyllisM7-Nov-08 9:54
PhyllisM7-Nov-08 9:54 
AnswerRe: I am a novice at this, where can I post a job for .net developer? Pin
Colin Angus Mackay7-Nov-08 10:37
Colin Angus Mackay7-Nov-08 10:37 
GeneralRe: I am a novice at this, where can I post a job for .net developer? Pin
Mark Salsbery8-Nov-08 6:20
Mark Salsbery8-Nov-08 6:20 
GeneralRe: I am a novice at this, where can I post a job for .net developer? Pin
Colin Angus Mackay8-Nov-08 6:43
Colin Angus Mackay8-Nov-08 6:43 
GeneralRe: I am a novice at this, where can I post a job for .net developer? Pin
#realJSOP9-Nov-08 23:55
professional#realJSOP9-Nov-08 23:55 
GeneralRe: I am a novice at this, where can I post a job for .net developer? Pin
Paul Conrad8-Nov-08 13:20
professionalPaul Conrad8-Nov-08 13:20 
AnswerRe: I am a novice at this, where can I post a job for .net developer? Pin
Paul Conrad8-Nov-08 13:18
professionalPaul Conrad8-Nov-08 13:18 
AnswerRe: I am a novice at this, where can I post a job for .net developer? Pin
#realJSOP10-Nov-08 0:02
professional#realJSOP10-Nov-08 0:02 
Questiondatabase library Pin
joindotnet7-Nov-08 1:16
joindotnet7-Nov-08 1:16 
AnswerRe: database library Pin
Giorgi Dalakishvili7-Nov-08 2:17
mentorGiorgi Dalakishvili7-Nov-08 2:17 
GeneralRe: database library Pin
joindotnet7-Nov-08 2:58
joindotnet7-Nov-08 2:58 
GeneralRe: database library Pin
Dave Kreskowiak7-Nov-08 3:03
mveDave Kreskowiak7-Nov-08 3: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.