Click here to Skip to main content
15,887,083 members
Home / Discussions / C#
   

C#

 
AnswerRe: returning the largest int variable Pin
CommDev8-Dec-12 23:52
CommDev8-Dec-12 23:52 
QuestionManual serialization of a class that contains the same class Pin
nadavst7-Dec-12 11:34
nadavst7-Dec-12 11:34 
AnswerRe: Manual serialization of a class that contains the same class Pin
Richard MacCutchan7-Dec-12 22:02
mveRichard MacCutchan7-Dec-12 22:02 
GeneralRe: Manual serialization of a class that contains the same class Pin
nadavst7-Dec-12 23:23
nadavst7-Dec-12 23:23 
GeneralRe: Manual serialization of a class that contains the same class Pin
Richard MacCutchan8-Dec-12 22:20
mveRichard MacCutchan8-Dec-12 22:20 
GeneralRe: Manual serialization of a class that contains the same class Pin
nadavst9-Dec-12 20:53
nadavst9-Dec-12 20:53 
AnswerRe: Manual serialization of a class that contains the same class Pin
lukeer9-Dec-12 20:54
lukeer9-Dec-12 20:54 
GeneralRe: Manual serialization of a class that contains the same class Pin
nadavst9-Dec-12 23:17
nadavst9-Dec-12 23:17 
I did this with the SoapFormmater and the output that i got is somthing like this:
XML
<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:clr="http://schemas.microsoft.com/soap/encoding/clr/1.0" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<a1:Person id="ref-1" xmlns:a1="http://schemas.microsoft.com/clr/nsassem/SerializeImp/SerializeImp%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull">
<_x003C_Age_x003E_k__BackingField>35</_x003C_Age_x003E_k__BackingField>
<_x003C_Name_x003E_k__BackingField href="#ref-3"/>
<_x003C_Address_x003E_k__BackingField href="#ref-4"/>
<_x003C_Spouse_x003E_k__BackingField href="#ref-5"/>
</a1:Person>
<a1:FullName id="ref-3" xmlns:a1="http://schemas.microsoft.com/clr/nsassem/SerializeImp/SerializeImp%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull">
<_firstName id="ref-6">Alice</_firstName>
<_lastName id="ref-7">Jones</_lastName>
</a1:FullName>
<a1:Address id="ref-4" xmlns:a1="http://schemas.microsoft.com/clr/nsassem/SerializeImp/SerializeImp%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull">
<_x003C_Street_x003E_k__BackingField id="ref-8">Lincoln 10</_x003C_Street_x003E_k__BackingField>
<_x003C_City_x003E_k__BackingField id="ref-9">New york</_x003C_City_x003E_k__BackingField>
<_x003C_ZipCode_x003E_k__BackingField id="ref-10">5555</_x003C_ZipCode_x003E_k__BackingField>
<_x003C_PhoneNumber_x003E_k__BackingField id="ref-11">5555555</_x003C_PhoneNumber_x003E_k__BackingField>
</a1:Address>
<a1:Person id="ref-5" xmlns:a1="http://schemas.microsoft.com/clr/nsassem/SerializeImp/SerializeImp%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull">
<_x003C_Age_x003E_k__BackingField>43</_x003C_Age_x003E_k__BackingField>
<_x003C_Name_x003E_k__BackingField href="#ref-12"/>
<_x003C_Address_x003E_k__BackingField href="#ref-4"/>
<_x003C_Spouse_x003E_k__BackingField href="#ref-1"/>
</a1:Person>
<a1:FullName id="ref-12" xmlns:a1="http://schemas.microsoft.com/clr/nsassem/SerializeImp/SerializeImp%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull">
<_firstName id="ref-13">Bob</_firstName>
<_lastName href="#ref-7"/>
</a1:FullName>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


so firstly every reference type object should be written with href attribute , and after that his values need to be written with
id attribute that the href's lead to them.
how do i do that, and then, how can I use this information with the Deserialize process?
AnswerRe: Manual serialization of a class that contains the same class Pin
BobJanova9-Dec-12 22:53
BobJanova9-Dec-12 22:53 
QuestionHow to pase the CCD (continuity Careof Document )in xml format to fetch that in dataset in ASP.NET Pin
shamalj7-Dec-12 3:50
shamalj7-Dec-12 3:50 
Questionapplication to update itself... Pin
Jassim Rahma7-Dec-12 2:10
Jassim Rahma7-Dec-12 2:10 
AnswerRe: application to update itself... Pin
Simon_Whale7-Dec-12 2:22
Simon_Whale7-Dec-12 2:22 
AnswerRe: application to update itself... Pin
Dave Kreskowiak7-Dec-12 4:41
mveDave Kreskowiak7-Dec-12 4:41 
GeneralRe: application to update itself... Pin
Ennis Ray Lynch, Jr.7-Dec-12 5:03
Ennis Ray Lynch, Jr.7-Dec-12 5:03 
AnswerRe: application to update itself... Pin
harsimranb7-Dec-12 6:08
harsimranb7-Dec-12 6:08 
Questionhow to convert hex to rgb color code in asp.net Pin
Deenuji6-Dec-12 23:13
Deenuji6-Dec-12 23:13 
AnswerRe: how to convert hex to rgb color code in asp.net Pin
Simon_Whale6-Dec-12 23:33
Simon_Whale6-Dec-12 23:33 
GeneralRe: how to convert hex to rgb color code in asp.net Pin
Deenuji6-Dec-12 23:59
Deenuji6-Dec-12 23:59 
GeneralRe: how to convert hex to rgb color code in asp.net Pin
Simon_Whale7-Dec-12 0:13
Simon_Whale7-Dec-12 0:13 
GeneralRe: how to convert hex to rgb color code in asp.net Pin
Richard Deeming7-Dec-12 1:18
mveRichard Deeming7-Dec-12 1:18 
GeneralRe: how to convert hex to rgb color code in asp.net Pin
Simon_Whale7-Dec-12 1:22
Simon_Whale7-Dec-12 1:22 
GeneralRe: how to convert hex to rgb color code in asp.net Pin
Richard Deeming7-Dec-12 1:26
mveRichard Deeming7-Dec-12 1:26 
GeneralRe: how to convert hex to rgb color code in asp.net Pin
Simon_Whale7-Dec-12 1:38
Simon_Whale7-Dec-12 1:38 
JokeRe: how to convert hex to rgb color code in asp.net Pin
Richard MacCutchan7-Dec-12 2:56
mveRichard MacCutchan7-Dec-12 2:56 
GeneralRe: how to convert hex to rgb color code in asp.net Pin
Richard MacCutchan7-Dec-12 2:55
mveRichard MacCutchan7-Dec-12 2:55 

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.