Click here to Skip to main content
15,886,873 members
Home / Discussions / C#
   

C#

 
QuestionIndexers Pin
ripples24-Aug-12 23:59
ripples24-Aug-12 23:59 
AnswerRe: Indexers Pin
Wes Aday25-Aug-12 0:12
professionalWes Aday25-Aug-12 0:12 
AnswerRe: Indexers Pin
DaveyM6925-Aug-12 0:37
professionalDaveyM6925-Aug-12 0:37 
AnswerRe: Indexers Pin
PIEBALDconsult25-Aug-12 4:40
mvePIEBALDconsult25-Aug-12 4:40 
AnswerRe: Indexers Pin
Richard MacCutchan25-Aug-12 7:07
mveRichard MacCutchan25-Aug-12 7:07 
GeneralRe: Indexers Pin
ripples25-Aug-12 8:52
ripples25-Aug-12 8:52 
Questioncan this be done without using 'dynamic: build a list of KeyValuePairs, where each item's Type varies ? Pin
BillWoodruff24-Aug-12 20:31
professionalBillWoodruff24-Aug-12 20:31 
AnswerRe: can this be done without using 'dynamic: build a list of KeyValuePairs, where each item's Type varies ? Pin
DaveyM6925-Aug-12 0:13
professionalDaveyM6925-Aug-12 0:13 
1. As is often the case, you can replace dynamic with object and it will still work the same. The two are very similar.
2. You passed in the Value not the Key. The GetType method you called returns the true type of the object, not object:
C#
object o = 1;
Console.WriteLine(o.GetType()); // System.Int32

Dave

Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.
Astonish us. Be exceptional. (Pete O'Hanlon)

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)



GeneralRe: can this be done without using 'dynamic: build a list of KeyValuePairs, where each item's Type varies ? Pin
BillWoodruff25-Aug-12 11:25
professionalBillWoodruff25-Aug-12 11:25 
AnswerRe: could this be done without dynamic Pin
Martijn Kok25-Aug-12 0:59
Martijn Kok25-Aug-12 0:59 
GeneralRe: could this be done without dynamic Pin
BillWoodruff25-Aug-12 11:33
professionalBillWoodruff25-Aug-12 11:33 
Questionasp.net Pin
Abubakar Shaikh .24-Aug-12 20:05
Abubakar Shaikh .24-Aug-12 20:05 
AnswerRe: asp.net Pin
Richard MacCutchan24-Aug-12 21:57
mveRichard MacCutchan24-Aug-12 21:57 
AnswerRe: asp.net Pin
Abhinav S25-Aug-12 2:38
Abhinav S25-Aug-12 2:38 
AnswerRe: asp.net Pin
Dave Kreskowiak25-Aug-12 4:23
mveDave Kreskowiak25-Aug-12 4:23 
QuestionProblem in datagridviewDeleteColumn Pin
Member 925960624-Aug-12 19:44
Member 925960624-Aug-12 19:44 
QuestionHow To Binding A List Of Frame? Pin
Bardiamarzbani24-Aug-12 9:42
Bardiamarzbani24-Aug-12 9:42 
AnswerRe: How To Binding A List Of Frame? Pin
Wes Aday24-Aug-12 10:46
professionalWes Aday24-Aug-12 10:46 
AnswerRe: How To Binding A List Of Frame? Pin
Dave Kreskowiak25-Aug-12 4:21
mveDave Kreskowiak25-Aug-12 4:21 
QuestionLearning C# for a beginner Pin
Diego Carrion24-Aug-12 8:16
Diego Carrion24-Aug-12 8:16 
AnswerRe: Learning C# for a beginner Pin
Richard Andrew x6424-Aug-12 9:10
professionalRichard Andrew x6424-Aug-12 9:10 
GeneralRe: Learning C# for a beginner Pin
Diego Carrion24-Aug-12 9:16
Diego Carrion24-Aug-12 9:16 
GeneralRe: Learning C# for a beginner Pin
Richard Andrew x6424-Aug-12 9:20
professionalRichard Andrew x6424-Aug-12 9:20 
GeneralRe: Learning C# for a beginner Pin
Diego Carrion24-Aug-12 9:29
Diego Carrion24-Aug-12 9:29 
GeneralRe: Learning C# for a beginner Pin
Richard Andrew x6424-Aug-12 10:07
professionalRichard Andrew x6424-Aug-12 10:07 

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.