Click here to Skip to main content
15,888,286 members
Home / Discussions / C#
   

C#

 
AnswerRe: XML Mapping to CSV Pin
jschell4-Jan-13 14:11
jschell4-Jan-13 14:11 
Questionhow to setup that form in the tabpage when tabpage resized Pin
linuxaidtest3-Jan-13 3:47
linuxaidtest3-Jan-13 3:47 
AnswerRe: how to setup that form in the tabpage when tabpage resized Pin
BillWoodruff3-Jan-13 16:42
professionalBillWoodruff3-Jan-13 16:42 
QuestionReading Excel from different processes in different computer Pin
SaneLucky3-Jan-13 2:58
SaneLucky3-Jan-13 2:58 
AnswerRe: Reading Excel from different processes in different computer Pin
Super Lloyd3-Jan-13 17:55
Super Lloyd3-Jan-13 17:55 
AnswerRe: Reading Excel from different processes in different computer Pin
April Fans3-Jan-13 19:33
April Fans3-Jan-13 19:33 
AnswerRe: Reading Excel from different processes in different computer Pin
micke.andersson28-Jan-13 4:45
micke.andersson28-Jan-13 4:45 
QuestionKeyValuePair from reference dll Pin
Isaksson3-Jan-13 1:52
Isaksson3-Jan-13 1:52 
Hello.
iam trying to read a KeyValuePair but it seems that iam doing soemthing wrong here, iam including a small part of the code where iam trying to read the value and also a capture from the debug, the debug shows me in "Locals" the info that i want to read.

C#
var dataSourceName = (
                                                      from entry in entityParams

                                                      where entry is KeyValuePair<string, string> && entry != null && ((KeyValuePair<string, string>)entry).Key.Equals("DataSourceName")
                                                      select ((KeyValuePair<string, string>)entry).Value).FirstOrDefault();


I did not find a way to upload and include a image in this post, so i added it external instead.

Link to image

In this debug case its the value "ps3" that i need.
I have added the .dll switchking.common to my references and also
C#
using SwitchKing.Common.Entities;


But now i need help what i need to do more to have access to the value.
AnswerRe: KeyValuePair from reference dll Pin
Super Lloyd3-Jan-13 17:51
Super Lloyd3-Jan-13 17:51 
GeneralRe: KeyValuePair from reference dll Pin
Isaksson3-Jan-13 21:14
Isaksson3-Jan-13 21:14 
GeneralRe: KeyValuePair from reference dll Pin
Super Lloyd3-Jan-13 22:48
Super Lloyd3-Jan-13 22:48 
GeneralRe: KeyValuePair from reference dll Pin
Isaksson4-Jan-13 0:41
Isaksson4-Jan-13 0:41 
Questionhow to connect and disconnect to internet by Exist connection Pin
apadana_19892-Jan-13 17:44
apadana_19892-Jan-13 17:44 
QuestionRe: how to connect and disconnect to internet by Exist connection Pin
Richard MacCutchan2-Jan-13 22:15
mveRichard MacCutchan2-Jan-13 22:15 
AnswerRe: how to connect and disconnect to internet by Exist connection Pin
jschell3-Jan-13 8:11
jschell3-Jan-13 8:11 
QuestionHow to create a colletion of properties in a C# class Pin
bnath0012-Jan-13 12:59
bnath0012-Jan-13 12:59 
AnswerRe: How to create a colletion of properties in a C# class Pin
PIEBALDconsult2-Jan-13 13:34
mvePIEBALDconsult2-Jan-13 13:34 
AnswerRe: How to create a colletion of properties in a C# class Pin
Abhinav S2-Jan-13 15:42
Abhinav S2-Jan-13 15:42 
AnswerRe: How to create a colletion of properties in a C# class Pin
OriginalGriff2-Jan-13 21:16
mveOriginalGriff2-Jan-13 21:16 
GeneralRe: How to create a colletion of properties in a C# class Pin
bnath0013-Jan-13 5:59
bnath0013-Jan-13 5:59 
GeneralRe: How to create a colletion of properties in a C# class Pin
OriginalGriff3-Jan-13 8:24
mveOriginalGriff3-Jan-13 8:24 
GeneralIf I use Dictionary, I am not able to serialize it Pin
bnath0013-Jan-13 9:08
bnath0013-Jan-13 9:08 
GeneralRe: If I use Dictionary, I am not able to serialize it Pin
OriginalGriff3-Jan-13 9:50
mveOriginalGriff3-Jan-13 9:50 
GeneralRe: If I use Dictionary, I am not able to serialize it Pin
bnath0013-Jan-13 10:44
bnath0013-Jan-13 10:44 
QuestionCA2214 Do not call overridable methods in constructors Pin
DaveyM692-Jan-13 12:35
professionalDaveyM692-Jan-13 12:35 

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.