Click here to Skip to main content
15,883,792 members
Home / Discussions / C#
   

C#

 
GeneralRe: advanced settings Pin
bfis1081378-Apr-13 18:22
bfis1081378-Apr-13 18:22 
GeneralRe: advanced settings Pin
SledgeHammer018-Apr-13 18:33
SledgeHammer018-Apr-13 18:33 
GeneralRe: advanced settings Pin
bfis1081378-Apr-13 18:45
bfis1081378-Apr-13 18:45 
GeneralRe: advanced settings Pin
SledgeHammer018-Apr-13 18:48
SledgeHammer018-Apr-13 18:48 
GeneralRe: advanced settings Pin
bfis1081378-Apr-13 18:51
bfis1081378-Apr-13 18:51 
GeneralRe: advanced settings Pin
SledgeHammer018-Apr-13 19:08
SledgeHammer018-Apr-13 19:08 
GeneralRe: advanced settings Pin
bfis1081378-Apr-13 21:16
bfis1081378-Apr-13 21:16 
AnswerRe: advanced settings Pin
Alan N9-Apr-13 1:54
Alan N9-Apr-13 1:54 
A class will not xml serialize unless it has a public parameterless constructor. For successful deserialization it must be possible to completely set the object's state by assigning values to it's public properties.

In effect the deserializer is doing something like this:
C#
Account acc = new Account();
acc.Broker = savedBroker;
acc.Name = savedName;
.... etc.


Without the necessary public parameterless constructor the serialization will silently fail (really helpful Microsoft!). You can add the constructor but then it looks like an Account cannot be restored fully as the object is strongly coupled to a specific file via the Update method and the Path has not been serialized. Think about the design carefully before adding a public Path property as the information stored in the file and in the serialized settings may be different.

Alan.
GeneralRe: advanced settings Pin
bfis1081379-Apr-13 2:03
bfis1081379-Apr-13 2:03 
GeneralRe: advanced settings Pin
Alan N9-Apr-13 2:31
Alan N9-Apr-13 2:31 
GeneralRe: advanced settings Pin
bfis1081378-Apr-13 21:47
bfis1081378-Apr-13 21:47 
Questioncrystal report problem remove one row Pin
mhd.sbt8-Apr-13 8:30
mhd.sbt8-Apr-13 8:30 
AnswerRe: crystal report problem remove one row Pin
Sivaraman Dhamodharan8-Apr-13 17:29
Sivaraman Dhamodharan8-Apr-13 17:29 
GeneralRe: crystal report problem remove one row Pin
Member 99567779-Apr-13 0:19
Member 99567779-Apr-13 0:19 
Questionwhere can i find flow free puzzle game Pin
GREG_DORIANcod8-Apr-13 6:14
professionalGREG_DORIANcod8-Apr-13 6:14 
AnswerRe: where can i find flow free puzzle game Pin
NotPolitcallyCorrect8-Apr-13 7:16
NotPolitcallyCorrect8-Apr-13 7:16 
QuestionC# and attachments Pin
annex457-Apr-13 4:09
annex457-Apr-13 4:09 
AnswerRe: C# and attachments Pin
Dave Kreskowiak7-Apr-13 4:56
mveDave Kreskowiak7-Apr-13 4:56 
AnswerRe: C# and attachments Pin
BobJanova8-Apr-13 1:29
BobJanova8-Apr-13 1:29 
AnswerRe: C# and attachments Pin
Manfred Rudolf Bihy8-Apr-13 1:56
professionalManfred Rudolf Bihy8-Apr-13 1:56 
AnswerRe: C# and attachments Pin
Jason Gleim8-Apr-13 3:46
professionalJason Gleim8-Apr-13 3:46 
Questiondetect sound Pin
saynasystem7-Apr-13 1:54
saynasystem7-Apr-13 1:54 
AnswerRe: detect sound Pin
NotPolitcallyCorrect7-Apr-13 2:19
NotPolitcallyCorrect7-Apr-13 2:19 
GeneralRe: detect sound Pin
Manfred Rudolf Bihy8-Apr-13 1:59
professionalManfred Rudolf Bihy8-Apr-13 1:59 
GeneralRe: detect sound Pin
NotPolitcallyCorrect8-Apr-13 2:38
NotPolitcallyCorrect8-Apr-13 2: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.