Click here to Skip to main content
15,905,587 members
Home / Discussions / C#
   

C#

 
GeneralRe: c# Code problem I can't find out Pin
Pete O'Hanlon16-Sep-10 1:33
mvePete O'Hanlon16-Sep-10 1:33 
GeneralRe: c# Code problem I can't find out Pin
Calla16-Sep-10 2:56
Calla16-Sep-10 2:56 
GeneralRe: c# Code problem I can't find out Pin
Pete O'Hanlon16-Sep-10 3:10
mvePete O'Hanlon16-Sep-10 3:10 
AnswerRe: c# Code problem I can't find out Pin
Luc Pattyn16-Sep-10 1:05
sitebuilderLuc Pattyn16-Sep-10 1:05 
GeneralRe: c# Code problem I can't find out Pin
C.CoderCreator16-Sep-10 1:08
C.CoderCreator16-Sep-10 1:08 
GeneralRe: c# Code problem I can't find out Pin
Luc Pattyn16-Sep-10 1:16
sitebuilderLuc Pattyn16-Sep-10 1:16 
QuestionWhat is the best way to add 'indexer' to class that derived from ConcurrentQueue ? Pin
Yanshof15-Sep-10 23:22
Yanshof15-Sep-10 23:22 
AnswerRe: What is the best way to add 'indexer' to class that derived from ConcurrentQueue ? Pin
Luc Pattyn16-Sep-10 1:12
sitebuilderLuc Pattyn16-Sep-10 1:12 
A ConcurrentQueue is meant to be thread-safe, whereas your code is not really safe: it will fail as soon as the queue content changes, as any change is going to invalidate the enumerator. I haven't studied the internals of that class, it must rely on a lock, which normally would not be accessible to you. So unless the class offers what you need somehow, you should not use it for whatever it is you want to do.

Perhaps you have been asking the wrong question, and you need another approach to your actual problem.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


GeneralRe: What is the best way to add 'indexer' to class that derived from ConcurrentQueue ? Pin
Yanshof16-Sep-10 1:23
Yanshof16-Sep-10 1:23 
GeneralRe: What is the best way to add 'indexer' to class that derived from ConcurrentQueue ? Pin
Luc Pattyn16-Sep-10 2:05
sitebuilderLuc Pattyn16-Sep-10 2:05 
GeneralRe: What is the best way to add 'indexer' to class that derived from ConcurrentQueue ? Pin
Yanshof16-Sep-10 2:55
Yanshof16-Sep-10 2:55 
QuestionBook Help Pin
NaveenHS15-Sep-10 20:55
NaveenHS15-Sep-10 20:55 
AnswerRe: Book Help Pin
Swiftain15-Sep-10 20:58
Swiftain15-Sep-10 20:58 
GeneralRe: Book Help Pin
NaveenHS15-Sep-10 21:09
NaveenHS15-Sep-10 21:09 
GeneralRe: Book Help Pin
N a v a n e e t h15-Sep-10 22:56
N a v a n e e t h15-Sep-10 22:56 
GeneralRe: Book Help Pin
NaveenHS15-Sep-10 23:17
NaveenHS15-Sep-10 23:17 
AnswerRe: Book Help Pin
i.j.russell16-Sep-10 1:14
i.j.russell16-Sep-10 1:14 
AnswerRe: Book Help [modified] Pin
Luc Pattyn16-Sep-10 1:21
sitebuilderLuc Pattyn16-Sep-10 1:21 
QuestionBack with base10, an example code. Hopefully I can exaplain now Pin
stephen.darling15-Sep-10 10:43
stephen.darling15-Sep-10 10:43 
AnswerRe: Back with base10, an example code. Hopefully I can exaplain now Pin
Ennis Ray Lynch, Jr.15-Sep-10 10:53
Ennis Ray Lynch, Jr.15-Sep-10 10:53 
GeneralRe: Back with base10, an example code. Hopefully I can exaplain now Pin
stephen.darling15-Sep-10 11:12
stephen.darling15-Sep-10 11:12 
AnswerMessage Closed Pin
15-Sep-10 22:09
stancrm15-Sep-10 22:09 
GeneralRe: Back with base10, an example code. Hopefully I can exaplain now Pin
stephen.darling16-Sep-10 4:32
stephen.darling16-Sep-10 4:32 
AnswerRe: Back with base10, an example code. Hopefully I can exaplain now Pin
David Skelly15-Sep-10 22:41
David Skelly15-Sep-10 22:41 
GeneralRe: Back with base10, an example code. Hopefully I can exaplain now Pin
Bassam Abdul-Baki16-Sep-10 3:25
professionalBassam Abdul-Baki16-Sep-10 3:25 

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.