Click here to Skip to main content
15,908,906 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# basic Exercise Help Pin
BoneSoft27-Oct-06 10:17
BoneSoft27-Oct-06 10:17 
AnswerRe: C# basic Exercise Help Pin
Dan Neely27-Oct-06 8:18
Dan Neely27-Oct-06 8:18 
QuestionAsync jScript and mshtml Pin
sterenzi27-Oct-06 5:19
sterenzi27-Oct-06 5:19 
AnswerRe: Async jScript and mshtml Pin
led mike27-Oct-06 5:25
led mike27-Oct-06 5:25 
GeneralRe: Async jScript and mshtml Pin
sterenzi27-Oct-06 5:40
sterenzi27-Oct-06 5:40 
GeneralRe: Async jScript and mshtml Pin
sterenzi27-Oct-06 5:46
sterenzi27-Oct-06 5:46 
GeneralRe: Async jScript and mshtml Pin
led mike27-Oct-06 6:57
led mike27-Oct-06 6:57 
QuestionWin application, web services, arrays of objects... Pin
Sandrina27-Oct-06 4:23
Sandrina27-Oct-06 4:23 
I have a windows application from which I "call" a method from a web service. The method returns an array of some objects (objects are from a class I created and they are located on the service side.)Objects have their public methods.
Now, on the client side (the win application), I accept that array, but I can't access the methods of the object... Why?
The code is something like this (the client side):

Service srvce = new Service();
Service.MyClass[] arrayObjects = new Service.MyClass[1000];
arrayObjects = srvce.GetArrayOfObjects(); //this returns the array I was talking about
//since that class has a public GetMyProperty() method, I should call that method from tha client side, right?

int myProperty = arrayObjects[0].GetMyProperty();

//but that doesn't work, I can't call any of the methods... IntelliSense gives me nothing after arrayObjects[0]

//it doesn't work when I do the conversion
int property = (arrayObjects[0] as Service.MyClass).GetProperty();

So, I can't call the methods, it's like they are private - and they're not, they're public, I just can't see them from client, and why is that?

I'm stuck... Help!
AnswerRe: Win application, web services, arrays of objects... Pin
Dustin Metzgar27-Oct-06 8:36
Dustin Metzgar27-Oct-06 8:36 
GeneralRe: Win application, web services, arrays of objects... Pin
Sandrina29-Oct-06 23:04
Sandrina29-Oct-06 23:04 
QuestionNeed Serious Help!!! Pin
Niiiissssshhhhhuuuuu27-Oct-06 4:20
Niiiissssshhhhhuuuuu27-Oct-06 4:20 
QuestionInvoke Constructor method of any class that extends an Interface without having to specifically cast each class Pin
Jost Pedro27-Oct-06 4:14
Jost Pedro27-Oct-06 4:14 
AnswerRe: Invoke Constructor method of any class that extends an Interface without having to specifically cast each class Pin
led mike27-Oct-06 5:25
led mike27-Oct-06 5:25 
AnswerRe: Invoke Constructor method of any class that extends an Interface without having to specifically cast each class Pin
MGoettmann27-Oct-06 6:18
MGoettmann27-Oct-06 6:18 
AnswerRe: Invoke Constructor method of any class that extends an Interface without having to specifically cast each class Pin
S. Senthil Kumar28-Oct-06 4:11
S. Senthil Kumar28-Oct-06 4:11 
Questiongetting current logged-in user name of windows Pin
saqib8227-Oct-06 3:36
saqib8227-Oct-06 3:36 
AnswerRe: getting current logged-in user name of windows Pin
Eric Dahlvang27-Oct-06 4:00
Eric Dahlvang27-Oct-06 4:00 
QuestionIs the virtual keyword really necessary? Pin
Shy Agam27-Oct-06 3:07
Shy Agam27-Oct-06 3:07 
AnswerRe: Is the virtual keyword really necessary? Pin
Rob Philpott27-Oct-06 4:14
Rob Philpott27-Oct-06 4:14 
GeneralRe: Is the virtual keyword really necessary? Pin
Shy Agam27-Oct-06 4:19
Shy Agam27-Oct-06 4:19 
GeneralRe: Is the virtual keyword really necessary? Pin
Rob Philpott27-Oct-06 4:31
Rob Philpott27-Oct-06 4:31 
AnswerRe: Is the virtual keyword really necessary? Pin
Guffa27-Oct-06 4:34
Guffa27-Oct-06 4:34 
GeneralRe: Is the virtual keyword really necessary? Pin
Shy Agam27-Oct-06 4:36
Shy Agam27-Oct-06 4:36 
QuestionParameterized transactions & non-parameterised transacions Pin
Haseeb Mukhtar27-Oct-06 2:58
Haseeb Mukhtar27-Oct-06 2:58 
AnswerRe: Parameterized transactions & non-parameterised transacions Pin
Dustin Metzgar27-Oct-06 8:38
Dustin Metzgar27-Oct-06 8:38 

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.