Click here to Skip to main content
15,880,796 members
Home / Discussions / C#
   

C#

 
AnswerRe: XML: why use Encoding ? Pin
Guffa21-Jan-06 10:15
Guffa21-Jan-06 10:15 
GeneralRe: XML: why use Encoding ? Pin
pxp22-Jan-06 1:52
pxp22-Jan-06 1:52 
QuestionC# equiv. of Java synchronized keyword Pin
J4amieC21-Jan-06 3:16
J4amieC21-Jan-06 3:16 
AnswerRe: C# equiv. of Java synchronized keyword Pin
Ravi Bhavnani21-Jan-06 4:43
professionalRavi Bhavnani21-Jan-06 4:43 
AnswerRe: C# equiv. of Java synchronized keyword Pin
Judah Gabriel Himango21-Jan-06 14:38
sponsorJudah Gabriel Himango21-Jan-06 14:38 
QuestionAxiom 3d engine problems Pin
psycokara21-Jan-06 3:01
psycokara21-Jan-06 3:01 
AnswerRe: Axiom 3d engine problems Pin
Dave Kreskowiak21-Jan-06 11:50
mveDave Kreskowiak21-Jan-06 11:50 
QuestionHow to pass a complex object to a web service Pin
sergestusxx21-Jan-06 2:09
sergestusxx21-Jan-06 2:09 
Hi!

I'm testing data transfer to a web service (using VS.NET 2k3 and c#) and I've observed the following:

- passing and returning any simple type object works fine.
- passing and returning any array of simple type objects works fine too.
BUT
- passing and returning any array of objects of this class:

<br />
public class Type1 <br />
	{<br />
		protected int x;<br />
		protected int y;<br />
		<br />
		public int X<br />
		{<br />
			get <br />
			{<br />
				return x;<br />
			}<br />
		}<br />
<br />
		public int Y<br />
		{<br />
			get <br />
			{<br />
				return y;<br />
			}<br />
		}<br />
<br />
		public Type1(int x,int y)<br />
		{<br />
			this.x = x;<br />
			this.y = y;<br />
		}<br />
	}<br />


throws an exception.

My question is how to pass this correctly. Maybe using XML, but how?? Confused | :confused: I'm a bit newbie on this.

Thanks to anyone.
GeneralRe: How to pass a complex object to a web service Pin
Guffa21-Jan-06 2:34
Guffa21-Jan-06 2:34 
GeneralRe: How to pass a complex object to a web service Pin
sergestusxx21-Jan-06 2:36
sergestusxx21-Jan-06 2:36 
Questioncreating and handling serial numbers Pin
ranzask21-Jan-06 1:36
ranzask21-Jan-06 1:36 
AnswerRe: creating and handling serial numbers Pin
CodyGen21-Jan-06 3:52
CodyGen21-Jan-06 3:52 
AnswerRe: creating and handling serial numbers Pin
shabonaa22-Jan-06 2:08
shabonaa22-Jan-06 2:08 
QuestionDatabase Provider error,Plz Help Pin
rudra08321-Jan-06 1:22
rudra08321-Jan-06 1:22 
QuestionHow can i check if the application run ? Pin
Gamil Mohamad21-Jan-06 1:05
Gamil Mohamad21-Jan-06 1:05 
AnswerRe: How can i check if the application run ? Pin
AB777121-Jan-06 2:34
AB777121-Jan-06 2:34 
GeneralRe: How can i check if the application run ? Pin
Gamil Mohamad21-Jan-06 4:43
Gamil Mohamad21-Jan-06 4:43 
QuestionInclude references Pin
tray_gator21-Jan-06 0:12
tray_gator21-Jan-06 0:12 
AnswerRe: Include references Pin
S. Senthil Kumar21-Jan-06 5:06
S. Senthil Kumar21-Jan-06 5:06 
QuestionInstall windows service Pin
binglin20-Jan-06 23:15
binglin20-Jan-06 23:15 
AnswerRe: Install windows service Pin
Dave Kreskowiak21-Jan-06 11:43
mveDave Kreskowiak21-Jan-06 11:43 
QuestionError during BASS_Init (Bass.Net.dll) Pin
Divyang Mithaiwala20-Jan-06 21:57
Divyang Mithaiwala20-Jan-06 21:57 
AnswerRe: Error during BASS_Init (Bass.Net.dll) Pin
Dave Kreskowiak21-Jan-06 4:39
mveDave Kreskowiak21-Jan-06 4:39 
QuestionHow to down size video file Pin
Teerapong Boonchot20-Jan-06 21:51
Teerapong Boonchot20-Jan-06 21:51 
QuestionHow to reduce bitrate for music Pin
Teerapong Boonchot20-Jan-06 21:42
Teerapong Boonchot20-Jan-06 21:42 

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.