Click here to Skip to main content
15,798,037 members
Home / Discussions / C#
   

C#

 
GeneralRe: Random Name List Pin
Luc Pattyn26-Jul-08 18:41
sitebuilderLuc Pattyn26-Jul-08 18:41 
GeneralRe: Random Name List Pin
PIEBALDconsult26-Jul-08 19:51
professionalPIEBALDconsult26-Jul-08 19:51 
QuestionRemote Desktop Sharing Pin
Chetan Patel26-Jul-08 3:32
Chetan Patel26-Jul-08 3:32 
AnswerRe: Remote Desktop Sharing Pin
Ed.Poore26-Jul-08 3:49
Ed.Poore26-Jul-08 3:49 
QuestionTypesafe collection that accepts two items Pin
Gareth H26-Jul-08 3:03
Gareth H26-Jul-08 3:03 
AnswerRe: Typesafe collection that accepts two items Pin
Luc Pattyn26-Jul-08 3:35
sitebuilderLuc Pattyn26-Jul-08 3:35 
AnswerRe: Typesafe collection that accepts two items Pin
Kevin McFarlane26-Jul-08 3:42
Kevin McFarlane26-Jul-08 3:42 
AnswerRe: Typesafe collection that accepts two items Pin
Ed.Poore26-Jul-08 3:55
Ed.Poore26-Jul-08 3:55 
Can't you create a wrapper class that stores the two items?  A simple (built-in) method would be something like:

var collection = new List<KeyValuePair<Type, Color>>();
collection.Add(new KeyValuePair<Type, Color>(theType, theColor));

Type typeReturned = collection[32].Key;
Color colorReturned = collection[32].Value;
If you created your own wrapper class then you'll be able to add as menu "sub-items" as you want and give them proper names, but I've used the KeyValuePair in the past when I've wanted something quick and dirty.



GeneralRe: Typesafe collection that accepts two items Pin
Gareth H26-Jul-08 4:16
Gareth H26-Jul-08 4:16 
Questionwebservice on another system Pin
balu1234526-Jul-08 1:39
balu1234526-Jul-08 1:39 
AnswerRe: webservice on another system [modified] Pin
Ed.Poore26-Jul-08 3:46
Ed.Poore26-Jul-08 3:46 
QuestionSplitting a Byte Array Pin
vayanan26-Jul-08 0:02
vayanan26-Jul-08 0:02 
AnswerRe: Splitting a Byte Array Pin
DaveyM6926-Jul-08 0:10
professionalDaveyM6926-Jul-08 0:10 
GeneralRe: Splitting a Byte Array Pin
vayanan26-Jul-08 2:22
vayanan26-Jul-08 2:22 
Questionwebservice problem Pin
balu1234525-Jul-08 23:37
balu1234525-Jul-08 23:37 
AnswerRe: webservice problem Pin
Ed.Poore25-Jul-08 23:51
Ed.Poore25-Jul-08 23:51 
Questioneasy question for profeesionall programmers... Pin
mr.mohsen25-Jul-08 22:32
mr.mohsen25-Jul-08 22:32 
AnswerRe: easy question for profeesionall programmers... Pin
Hesham Amin25-Jul-08 22:47
Hesham Amin25-Jul-08 22:47 
AnswerRe: easy question for profeesionall programmers... Pin
DaveyM6925-Jul-08 23:48
professionalDaveyM6925-Jul-08 23:48 
AnswerRe: easy question for profeesionall programmers... Pin
Paul Conrad26-Jul-08 12:03
professionalPaul Conrad26-Jul-08 12:03 
Questionlogical and operator Pin
Zeyad Jalil25-Jul-08 22:25
professionalZeyad Jalil25-Jul-08 22:25 
AnswerRe: logical and operator Pin
Hesham Amin25-Jul-08 22:38
Hesham Amin25-Jul-08 22:38 
AnswerRe: logical and operator Pin
mr.mohsen25-Jul-08 22:41
mr.mohsen25-Jul-08 22:41 
AnswerRe: logical and operator Pin
DaveyM6925-Jul-08 23:43
professionalDaveyM6925-Jul-08 23:43 
AnswerRe: logical and operator Pin
Ed.Poore25-Jul-08 23:47
Ed.Poore25-Jul-08 23:47 

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.