Click here to Skip to main content
15,881,027 members
Home / Discussions / C#
   

C#

 
GeneralRe: PropertyGrid usage Pin
rbuchana17-Dec-09 7:09
rbuchana17-Dec-09 7:09 
QuestionAutomate Web Browser control in Multiple Threads Pin
Sumit_Ghosh17-Dec-09 4:56
Sumit_Ghosh17-Dec-09 4:56 
AnswerRe: Automate Web Browser control in Multiple Threads Pin
Dave Kreskowiak17-Dec-09 10:59
mveDave Kreskowiak17-Dec-09 10:59 
Questionmagnify support Pin
pvn g17-Dec-09 4:08
pvn g17-Dec-09 4:08 
AnswerRe: magnify support Pin
Dr.Walt Fair, PE17-Dec-09 5:48
professionalDr.Walt Fair, PE17-Dec-09 5:48 
GeneralRe: magnify support Pin
pvn g17-Dec-09 18:35
pvn g17-Dec-09 18:35 
GeneralRe: magnify support Pin
pvn g17-Dec-09 18:35
pvn g17-Dec-09 18:35 
QuestionCasting objects to get at the contents? Pin
MattFunke17-Dec-09 3:33
MattFunke17-Dec-09 3:33 
Please forgive me if this is a simple question -- I'm pretty new to C#.

Here's a quick code snippet that tries to take advantage of the ClearQuest API:

ClearQuestOleServer.SessionClass cqSession = new ClearQuestOleServer.SessionClass();
cqSession.UserLogon(login, password, dbName, (int)ClearQuestConstants.SessionType.AD_PRIVATE_SESSION, "");
object cqEntities = cqSession.GetEntityDefNames();


Now, when I run through this in the debugger and watch cqEntities, I can see that it's an array of strings (the "Type" field even claims that it's an "object {object[]}" type, with each item within it an "object {string}" type), but C# won't let me cast cqEntities as a string[], nor will it let me use cqEntities in a foreach (since it's not enumerable). What can I do to get at the stringy contents?

Thanks for any help you can offer!
AnswerRe: Casting objects to get at the contents? Pin
Migounette17-Dec-09 4:11
Migounette17-Dec-09 4:11 
GeneralRe: Casting objects to get at the contents? Pin
MattFunke17-Dec-09 4:22
MattFunke17-Dec-09 4:22 
AnswerRe: Casting objects to get at the contents? Pin
OriginalGriff17-Dec-09 4:15
mveOriginalGriff17-Dec-09 4:15 
GeneralRe: Casting objects to get at the contents? [modified] Pin
MattFunke17-Dec-09 4:23
MattFunke17-Dec-09 4:23 
AnswerRe: Casting objects to get at the contents? Pin
Jim Crafton17-Dec-09 5:34
Jim Crafton17-Dec-09 5:34 
Questionproblem receiving data from Pin
Shivendra Pandey17-Dec-09 2:14
Shivendra Pandey17-Dec-09 2:14 
AnswerRe: problem receiving data from Pin
OriginalGriff17-Dec-09 2:35
mveOriginalGriff17-Dec-09 2:35 
AnswerRe: problem receiving data from Pin
Migounette17-Dec-09 3:59
Migounette17-Dec-09 3:59 
AnswerRe: problem receiving data from Pin
Jim Crafton17-Dec-09 5:37
Jim Crafton17-Dec-09 5:37 
QuestionCreate an Insert SQL - Statement for insert a date Pin
neus8317-Dec-09 1:59
neus8317-Dec-09 1:59 
AnswerRe: Create an Insert SQL - Statement for insert a date Pin
Arindam Tewary17-Dec-09 2:15
professionalArindam Tewary17-Dec-09 2:15 
AnswerRe: Create an Insert SQL - Statement for insert a date Pin
Shivendra Pandey17-Dec-09 2:17
Shivendra Pandey17-Dec-09 2:17 
AnswerRe: Create an Insert SQL - Statement for insert a date [modified] Pin
OriginalGriff17-Dec-09 2:33
mveOriginalGriff17-Dec-09 2:33 
GeneralRe: Create an Insert SQL - Statement for insert a date Pin
loyal ginger17-Dec-09 4:05
loyal ginger17-Dec-09 4:05 
GeneralRe: Create an Insert SQL - Statement for insert a date Pin
OriginalGriff17-Dec-09 4:09
mveOriginalGriff17-Dec-09 4:09 
AnswerRe: Create an Insert SQL - Statement for insert a date Pin
cysccnu17-Dec-09 3:34
cysccnu17-Dec-09 3:34 
GeneralRe: Create an Insert SQL - Statement for insert a date Pin
PIEBALDconsult17-Dec-09 5:07
mvePIEBALDconsult17-Dec-09 5: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.