Click here to Skip to main content
15,899,313 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
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 
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 
Hi,

supercat9 wrote:
Do any of Microsoft's collection objects guarantee that they will throw exceptions if ...


No, there is no thread safety in general. However GetEnumerator returns an IEnumerable and that promises an InvalidOperationException when the collection gets modified (see Current and MoveNext). I trust that works fine even when two threads are involved; it would be my guess they have some kind of generation number or so that gets compared on every invocation of Current/MoveNext.


supercat9 wrote:
I wonder why there isn't a more modern version of the VisualBasic.Collection class which includes all its features?


I don't know. In fact I was unaware of Collection class until you mentioned it earlier. There are several classes marked "Visual Basic" and I would guess they mainly exist for compatibility or easier upgradability reasons where old VB code is involved??


supercat9 wrote:
mine performs thread-safe lock-free event subscription and unsubscription in constant time


Sounds like a good subject for a nice article. Any plans?

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Fixturized forever. Confused | :confused:


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 
GeneralRe: database library Pin
Giorgi Dalakishvili7-Nov-08 3:05
mentorGiorgi Dalakishvili7-Nov-08 3:05 
GeneralRe: database library Pin
Pete O'Hanlon7-Nov-08 3:20
mvePete O'Hanlon7-Nov-08 3:20 

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.