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

C#

 
Questionreturning the largest int variable Pin
RichB377-Dec-12 12:54
RichB377-Dec-12 12:54 
AnswerRe: returning the largest int variable Pin
PIEBALDconsult7-Dec-12 14:15
mvePIEBALDconsult7-Dec-12 14:15 
GeneralRe: returning the largest int variable Pin
RichB377-Dec-12 15:00
RichB377-Dec-12 15:00 
GeneralRe: returning the largest int variable Pin
Brisingr Aerowing7-Dec-12 17:03
professionalBrisingr Aerowing7-Dec-12 17:03 
AnswerRe: returning the largest int variable Pin
Dave Kreskowiak7-Dec-12 18:41
mveDave Kreskowiak7-Dec-12 18:41 
GeneralRe: returning the largest int variable Pin
RichB377-Dec-12 18:51
RichB377-Dec-12 18:51 
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 
Hi,

I would like to serialize a class (Person),
That contains a field called "Spouse", of the same type(Person).

I'm having a bit of problem doing that because I don't know
when to stop writing.

I'm trying to do it manualy, not with XmlSerializer BinaryFormatter ect.

BTW
when I do try to serialize with the classes mentioned above, XmlSerializer - works fine only when I'm not serialize "Spouse" field.
with BinaryFormatter it works well.

C#
public class Person
{
        public int Age { get; set; }
        public FullName Name { get; set; }
        public Address Address { get; set; }
        public Person Spouse { get; set; }
}

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 
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 

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.