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

.NET (Core and Framework)

 
AnswerRe: .Net Framework Pin
Eddy Vluggen28-Aug-12 5:33
professionalEddy Vluggen28-Aug-12 5:33 
SuggestionRe: .Net Framework Pin
AsaApplications30-Aug-12 13:26
AsaApplications30-Aug-12 13:26 
AnswerRe: .Net Framework Pin
Abhinav S30-Aug-12 19:46
Abhinav S30-Aug-12 19:46 
AnswerRe: .Net Framework Pin
Bernhard Hiller31-Aug-12 2:37
Bernhard Hiller31-Aug-12 2:37 
RantNeed to vent/need incite (complete rant) Pin
anthem12728-Aug-12 2:03
anthem12728-Aug-12 2:03 
GeneralRe: Need to vent/need incite (complete rant) Pin
Pete O'Hanlon28-Aug-12 2:15
mvePete O'Hanlon28-Aug-12 2:15 
GeneralRe: Need to vent/need incite (complete rant) Pin
Eddy Vluggen28-Aug-12 2:51
professionalEddy Vluggen28-Aug-12 2:51 
QuestionWhich class for anchored lookup? Pin
M-Badger27-Aug-12 11:24
M-Badger27-Aug-12 11:24 
I'm having trouble choosing a class to do the following job, any help appreciated.
Thus far I've been trying to make it work via List(Of custom structure), the generic SortedList(Of Single, Of Color) and SortedList() to little avail, both directly and sub-classing them.

1. Map numbers (from 0 to 1) to colours
2. The mappings would be discrete, e.g. you could have just two, or 500 (or more)
3. Either a class function or an external one would translate an input (0 < = x <= 1) into a color, either interpolated between two anchors or the color matching the next lowest or next highest anchor.
4. There must always be an anchor at 0 and another at 1 with n inbetween.

Initially I used a List(Of custom structure) and had a separate class that used a bunch of static functions to create said Lists but then decided I wanted to wrap the whole thing up in its own class, probably inlcuding that look-up function (plu various overloads). That's when I started having headaches.

Having a class with a List(Of T) member did the job pretty well until I realised that it would help if it was sorted and also ensured no duplicate anchors (and that there was always a 0 and a 1). So a SortedList seemed a muh better place to start and then I got quite stuck picking the best base class.

I'm pretty sure I need to subclass here since otherwise I can see myself having to implement ICollection, IList, IDictionary, I?Comparable, IEquatable etc. not my idea of fun!

Thanks,
Mike
QuestionSQL Connection problem in Windows Service asp.net c# Pin
Member 799263524-Aug-12 0:19
Member 799263524-Aug-12 0:19 
AnswerCross post Pin
Wes Aday24-Aug-12 0:57
professionalWes Aday24-Aug-12 0:57 
GeneralRe: Cross post Pin
SoMad24-Aug-12 8:10
professionalSoMad24-Aug-12 8:10 
AnswerRe: SQL Connection problem in Windows Service asp.net c# Pin
Vijay Selvaraj27-Aug-12 0:29
Vijay Selvaraj27-Aug-12 0:29 
GeneralRe: SQL Connection problem in Windows Service asp.net c# Pin
Pete O'Hanlon27-Aug-12 2:49
mvePete O'Hanlon27-Aug-12 2:49 
QuestionProcess Kill HELP! Pin
jitforce258523-Aug-12 8:32
jitforce258523-Aug-12 8:32 
AnswerRe: Process Kill HELP! Pin
Wes Aday23-Aug-12 9:08
professionalWes Aday23-Aug-12 9:08 
AnswerRe: Process Kill HELP! Pin
Richard Andrew x6423-Aug-12 11:38
professionalRichard Andrew x6423-Aug-12 11:38 
AnswerRe: Process Kill HELP! Pin
Dave Kreskowiak23-Aug-12 18:40
mveDave Kreskowiak23-Aug-12 18:40 
GeneralRe: Process Kill HELP! Pin
jitforce258524-Aug-12 5:28
jitforce258524-Aug-12 5:28 
GeneralRe: Process Kill HELP! Pin
Dave Kreskowiak24-Aug-12 6:19
mveDave Kreskowiak24-Aug-12 6:19 
GeneralRe: Process Kill HELP! Pin
jitforce258524-Aug-12 17:33
jitforce258524-Aug-12 17:33 
AnswerRe: Process Kill HELP! Pin
Eddy Vluggen24-Aug-12 22:27
professionalEddy Vluggen24-Aug-12 22:27 
AnswerRe: Process Kill HELP! Pin
Vijay Selvaraj27-Aug-12 0:30
Vijay Selvaraj27-Aug-12 0:30 
GeneralRe: Process Kill HELP! Pin
Eddy Vluggen27-Aug-12 1:25
professionalEddy Vluggen27-Aug-12 1:25 
QuestionHow to debug Visual Studio Crashing Pin
Clark Kent12322-Aug-12 9:13
professionalClark Kent12322-Aug-12 9:13 
AnswerRe: How to debug Visual Studio Crashing Pin
Big Daddy Farang22-Aug-12 9:56
Big Daddy Farang22-Aug-12 9:56 

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.