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

.NET (Core and Framework)

 
GeneralRazor Engine Pin
Albarhami1-Sep-12 20:45
Albarhami1-Sep-12 20:45 
GeneralRe: Razor Engine Pin
Eddy Vluggen1-Sep-12 21:50
professionalEddy Vluggen1-Sep-12 21:50 
GeneralRe: Razor Engine Pin
Dave Kreskowiak2-Sep-12 4:45
mveDave Kreskowiak2-Sep-12 4:45 
QuestionRazor engine (MVC) Pin
Albarhami1-Sep-12 20:44
Albarhami1-Sep-12 20:44 
Questionhow to create database with sql connection in vb.net Pin
mamnafih31-Aug-12 1:05
mamnafih31-Aug-12 1:05 
AnswerRe: how to create database with sql connection in vb.net Pin
Eddy Vluggen31-Aug-12 1:31
professionalEddy Vluggen31-Aug-12 1:31 
AnswerCross post Pin
Wes Aday31-Aug-12 2:28
professionalWes Aday31-Aug-12 2:28 
Question.Net Framework Pin
Georges2328-Aug-12 5:14
Georges2328-Aug-12 5:14 
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 

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.