Click here to Skip to main content
15,894,740 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to store datas in excel. Pin
PIEBALDconsult28-Aug-12 7:06
mvePIEBALDconsult28-Aug-12 7:06 
QuestionParsing a Path Pin
ASPnoob27-Aug-12 19:09
ASPnoob27-Aug-12 19:09 
AnswerRe: Parsing a Path Pin
Pete O'Hanlon27-Aug-12 23:27
mvePete O'Hanlon27-Aug-12 23:27 
Questionoh yes, using 'dynamic <i>will<i> do something special for you ! Pin
BillWoodruff27-Aug-12 15:33
professionalBillWoodruff27-Aug-12 15:33 
AnswerRe: oh yes, using 'dynamic will do something special for you ! Pin
DaveyM6927-Aug-12 22:34
professionalDaveyM6927-Aug-12 22:34 
GeneralRe: oh yes, using 'dynamic will do something special for you ! Pin
BillWoodruff28-Aug-12 3:34
professionalBillWoodruff28-Aug-12 3:34 
GeneralRe: oh yes, using 'dynamic will do something special for you ! Pin
DaveyM6928-Aug-12 3:50
professionalDaveyM6928-Aug-12 3:50 
GeneralRe: oh yes, using 'dynamic will do something special for you ! Pin
BillWoodruff28-Aug-12 14:58
professionalBillWoodruff28-Aug-12 14:58 
Hi Dave,
string kvpString = Convert.ChangeType(kvpTO.Value, kvpTO.Key);
I am afraid that one will not work: "Error Cannot implicitly convert type 'object' to 'string'. An explicit conversion exists (are you missing a cast?)"

You'll note the examples on the MSDN page you linked to all use a specific cast on the result returned by calling Convert.ChangeType:
Double d = -2.345;
int i = (int)Convert.ChangeType(d, typeof(int));

Console.WriteLine(&amp;amp;quot;The double value {0} when converted to an int becomes {1}&amp;amp;quot;, d, i);

string s = &amp;amp;quot;12/12/98&amp;amp;quot;;
DateTime dt = (DateTime)Convert.ChangeType(s, typeof(DateTime));


"If you shoot at mimes, should you use a silencer ?" Stephen Wright

AnswerRe: oh yes, using 'dynamic will do something special for you ! Pin
DaveyM6928-Aug-12 4:15
professionalDaveyM6928-Aug-12 4:15 
GeneralRe: oh yes, using 'dynamic will do something special for you ! Pin
BillWoodruff28-Aug-12 15:09
professionalBillWoodruff28-Aug-12 15:09 
GeneralRe: oh yes, using 'dynamic will do something special for you ! Pin
DaveyM6928-Aug-12 21:24
professionalDaveyM6928-Aug-12 21:24 
QuestionMailMessage syntax with using statement Pin
thewazz27-Aug-12 10:46
professionalthewazz27-Aug-12 10:46 
AnswerRe: MailMessage syntax with using statement Pin
Eddy Vluggen27-Aug-12 11:01
professionalEddy Vluggen27-Aug-12 11:01 
AnswerRe: MailMessage syntax with using statement Pin
Wes Aday27-Aug-12 11:03
professionalWes Aday27-Aug-12 11:03 
GeneralRe: MailMessage syntax with using statement Pin
thewazz27-Aug-12 12:32
professionalthewazz27-Aug-12 12:32 
QuestionPlay Incoming Message Notification Pin
Jassim Rahma27-Aug-12 10:43
Jassim Rahma27-Aug-12 10:43 
AnswerRe: Play Incoming Message Notification Pin
Wes Aday27-Aug-12 10:45
professionalWes Aday27-Aug-12 10:45 
GeneralRe: Play Incoming Message Notification Pin
Jassim Rahma27-Aug-12 10:52
Jassim Rahma27-Aug-12 10:52 
GeneralRe: Play Incoming Message Notification Pin
Wes Aday27-Aug-12 11:00
professionalWes Aday27-Aug-12 11:00 
AnswerRe: Play Incoming Message Notification Pin
Eddy Vluggen27-Aug-12 11:08
professionalEddy Vluggen27-Aug-12 11:08 
GeneralRe: Play Incoming Message Notification Pin
Wes Aday27-Aug-12 11:15
professionalWes Aday27-Aug-12 11:15 
GeneralRe: Play Incoming Message Notification Pin
Eddy Vluggen27-Aug-12 11:22
professionalEddy Vluggen27-Aug-12 11:22 
QuestionSidebar using MDI Child Pin
Jassim Rahma27-Aug-12 10:35
Jassim Rahma27-Aug-12 10:35 
AnswerRe: Sidebar using MDI Child Pin
Eddy Vluggen27-Aug-12 10:58
professionalEddy Vluggen27-Aug-12 10:58 
GeneralRe: Sidebar using MDI Child Pin
Jassim Rahma28-Aug-12 10:40
Jassim Rahma28-Aug-12 10: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.