Click here to Skip to main content
15,881,715 members
Home / Discussions / C#
   

C#

 
Questioninteresting issue with SortedSet and ElementAt Pin
BillWoodruff22-Nov-20 18:59
professionalBillWoodruff22-Nov-20 18:59 
AnswerRe: interesting issue with SortedSet and ElementAt Pin
Sandeep Mewara22-Nov-20 20:06
mveSandeep Mewara22-Nov-20 20:06 
GeneralRe: interesting issue with SortedSet and ElementAt Pin
BillWoodruff22-Nov-20 22:19
professionalBillWoodruff22-Nov-20 22:19 
GeneralRe: interesting issue with SortedSet and ElementAt Pin
Sandeep Mewara22-Nov-20 22:38
mveSandeep Mewara22-Nov-20 22:38 
GeneralRe: interesting issue with SortedSet and ElementAt Pin
BillWoodruff22-Nov-20 22:46
professionalBillWoodruff22-Nov-20 22:46 
GeneralRe: interesting issue with SortedSet and ElementAt Pin
Sandeep Mewara22-Nov-20 22:51
mveSandeep Mewara22-Nov-20 22:51 
AnswerRe: interesting issue with SortedSet and ElementAt Pin
Richard Deeming22-Nov-20 22:15
mveRichard Deeming22-Nov-20 22:15 
GeneralRe: interesting issue with SortedSet and ElementAt Pin
BillWoodruff22-Nov-20 22:40
professionalBillWoodruff22-Nov-20 22:40 
Thumbs Up | :thumbsup: Hi Richard,

The half-blind man salutes the eagle-eyed man Smile | :)

I was aware of the fact that ElementAt is an Extension method of IEnumerable; that's the reason I listed the inheritance chain for SortedSet at the top of my post. Just stupidity for me not to spot my syntax error.

I'm also aware it's an expensive call.

A QA question today [^] got me interested in exploring some of the Sorted/Ordered data structures in terms of their overhead and utility ... when duplicate keys are required. They have real constraints/costs when various patterns of usage are needed: inserts, deletes, etc.

My goal, as ever, in my compulsive quest to exit this incarnation with better understanding of the glory of C# and .NET ... is to gain heuristic knowledge: which is the better tool to use to construct a data structure, given context and usage. My one good eye sees you as exemplary in that regard ... go ahead and blush OMG | :OMG:

cheers, Bill
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali

GeneralRe: interesting issue with SortedSet and ElementAt Pin
Richard Deeming22-Nov-20 22:58
mveRichard Deeming22-Nov-20 22:58 
Questionneed some guidance and advice to build a questionnaire system similar to Google forms in vb.net or c# and sql server Pin
albasheer210019-Nov-20 18:09
albasheer210019-Nov-20 18:09 
Rant[REPOST] need some guidance and advice to build a questionnaire system similar to Google forms in vb.net or c# and sql server Pin
Richard Deeming19-Nov-20 21:45
mveRichard Deeming19-Nov-20 21:45 
AnswerRe: need some guidance and advice to build a questionnaire system similar to Google forms in vb.net or c# and sql server Pin
Gerry Schmitz20-Nov-20 6:04
mveGerry Schmitz20-Nov-20 6:04 
QuestionHelp with Docker Pin
pkfox18-Nov-20 20:30
professionalpkfox18-Nov-20 20:30 
AnswerRe: Help with Docker Pin
Gerry Schmitz19-Nov-20 4:26
mveGerry Schmitz19-Nov-20 4:26 
GeneralRe: Help with Docker Pin
pkfox19-Nov-20 4:28
professionalpkfox19-Nov-20 4:28 
GeneralRe: Help with Docker Pin
Pete O'Hanlon19-Nov-20 4:39
mvePete O'Hanlon19-Nov-20 4:39 
GeneralRe: Help with Docker Pin
pkfox19-Nov-20 6:49
professionalpkfox19-Nov-20 6:49 
QuestionHow to save DataGridView content? Pin
Alex Dunlop17-Nov-20 21:35
Alex Dunlop17-Nov-20 21:35 
AnswerRe: How to save DataGridView content? Pin
Richard Deeming17-Nov-20 21:39
mveRichard Deeming17-Nov-20 21:39 
AnswerRe: How to save DataGridView content? Pin
OriginalGriff17-Nov-20 21:49
mveOriginalGriff17-Nov-20 21:49 
GeneralRe: How to save DataGridView content? Pin
Alex Dunlop18-Nov-20 6:05
Alex Dunlop18-Nov-20 6:05 
GeneralRe: How to save DataGridView content? Pin
OriginalGriff18-Nov-20 6:21
mveOriginalGriff18-Nov-20 6:21 
GeneralRe: How to save DataGridView content? Pin
Alex Dunlop18-Nov-20 6:05
Alex Dunlop18-Nov-20 6:05 
GeneralRe: How to save DataGridView content? Pin
Mycroft Holmes18-Nov-20 11:14
professionalMycroft Holmes18-Nov-20 11:14 
Question.NET5 publish selfcontained: issue with App.config Pin
Super Lloyd17-Nov-20 14:31
Super Lloyd17-Nov-20 14:31 

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.