Click here to Skip to main content
15,889,034 members
Home / Discussions / C#
   

C#

 
GeneralRe: Random Name List Pin
Luc Pattyn26-Jul-08 17:41
sitebuilderLuc Pattyn26-Jul-08 17:41 
GeneralRe: Random Name List Pin
PIEBALDconsult26-Jul-08 18:51
mvePIEBALDconsult26-Jul-08 18:51 
QuestionRemote Desktop Sharing Pin
Chetan Patel26-Jul-08 2:32
Chetan Patel26-Jul-08 2:32 
AnswerRe: Remote Desktop Sharing Pin
Ed.Poore26-Jul-08 2:49
Ed.Poore26-Jul-08 2:49 
QuestionTypesafe collection that accepts two items Pin
Gareth H26-Jul-08 2:03
Gareth H26-Jul-08 2:03 
AnswerRe: Typesafe collection that accepts two items Pin
Luc Pattyn26-Jul-08 2:35
sitebuilderLuc Pattyn26-Jul-08 2:35 
AnswerRe: Typesafe collection that accepts two items Pin
Kevin McFarlane26-Jul-08 2:42
Kevin McFarlane26-Jul-08 2:42 
AnswerRe: Typesafe collection that accepts two items Pin
Ed.Poore26-Jul-08 2:55
Ed.Poore26-Jul-08 2: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 3:16
Gareth H26-Jul-08 3:16 
Questionwebservice on another system Pin
balu1234526-Jul-08 0:39
balu1234526-Jul-08 0:39 
AnswerRe: webservice on another system [modified] Pin
Ed.Poore26-Jul-08 2:46
Ed.Poore26-Jul-08 2:46 
QuestionSplitting a Byte Array Pin
vayanan25-Jul-08 23:02
vayanan25-Jul-08 23:02 
AnswerRe: Splitting a Byte Array Pin
DaveyM6925-Jul-08 23:10
professionalDaveyM6925-Jul-08 23:10 
GeneralRe: Splitting a Byte Array Pin
vayanan26-Jul-08 1:22
vayanan26-Jul-08 1:22 
Questionwebservice problem Pin
balu1234525-Jul-08 22:37
balu1234525-Jul-08 22:37 
AnswerRe: webservice problem Pin
Ed.Poore25-Jul-08 22:51
Ed.Poore25-Jul-08 22:51 
Questioneasy question for profeesionall programmers... Pin
mr.mohsen25-Jul-08 21:32
mr.mohsen25-Jul-08 21:32 
AnswerRe: easy question for profeesionall programmers... Pin
Hesham Amin25-Jul-08 21:47
Hesham Amin25-Jul-08 21:47 
AnswerRe: easy question for profeesionall programmers... Pin
DaveyM6925-Jul-08 22:48
professionalDaveyM6925-Jul-08 22:48 
AnswerRe: easy question for profeesionall programmers... Pin
Paul Conrad26-Jul-08 11:03
professionalPaul Conrad26-Jul-08 11:03 
Questionlogical and operator Pin
Zeyad Jalil25-Jul-08 21:25
professionalZeyad Jalil25-Jul-08 21:25 
AnswerRe: logical and operator Pin
Hesham Amin25-Jul-08 21:38
Hesham Amin25-Jul-08 21:38 
AnswerRe: logical and operator Pin
mr.mohsen25-Jul-08 21:41
mr.mohsen25-Jul-08 21:41 
AnswerRe: logical and operator Pin
DaveyM6925-Jul-08 22:43
professionalDaveyM6925-Jul-08 22:43 
AnswerRe: logical and operator Pin
Ed.Poore25-Jul-08 22:47
Ed.Poore25-Jul-08 22: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.