Click here to Skip to main content
15,907,001 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: 3D printing a landing gear Pin
megaadam24-Sep-17 22:37
professionalmegaadam24-Sep-17 22:37 
GeneralRe: 3D printing a landing gear Pin
Munchies_Matt24-Sep-17 22:59
Munchies_Matt24-Sep-17 22:59 
GeneralRe: 3D printing a landing gear Pin
Slacker00725-Sep-17 2:18
professionalSlacker00725-Sep-17 2:18 
GeneralRe: 3D printing a landing gear Pin
dandy7225-Sep-17 3:34
dandy7225-Sep-17 3:34 
GeneralRe: 3D printing a landing gear Pin
CodeWraith25-Sep-17 4:22
CodeWraith25-Sep-17 4:22 
GeneralRe: 3D printing a landing gear Pin
Foothill25-Sep-17 5:22
professionalFoothill25-Sep-17 5:22 
GeneralRe: 3D printing a landing gear Pin
dandy7225-Sep-17 5:42
dandy7225-Sep-17 5:42 
GeneralWow, Newtonsoft Deserializer. Wow! Pin
raddevus24-Sep-17 10:57
mvaraddevus24-Sep-17 10:57 
I often expect things to work and they don't so I thought I might mention a time when I did not expect a thing to work and it did. Big Grin | :-D

I am changing my C'YaPass app so you can save the web site's password requirements along with your siteKey. That will mean the app will remmeber each sites's pwd requirements like Yahoo!, for example, requires uppercase, max length of 32 and 1 special char.

Anyways, currently the SiteKey objects are simply stored in a json file (serialized) and then deserialized when the program loads. Very simple.

However, to do the new work it means the SiteKey object and the json behind it would be different. I'm adding new property values to the SiteKey class.
I figured that was going to be very difficult since the new app would expect the new property values that obviously weren't there.

However, I found that the NewtonSoft Deserializer handles all that behind the scenes.
1. It simply reads the old json and deserializes the old json into my new objects (which contain new properties)
2. serializes the objects back out with default values where the user has not provided the values yet

Very cool, Newtonsoft! Cool | :cool:
GeneralRe: Wow, Newtonsoft Deserializer. Wow! Pin
Ravi Bhavnani24-Sep-17 12:46
professionalRavi Bhavnani24-Sep-17 12:46 
GeneralRe: Wow, Newtonsoft Deserializer. Wow! Pin
Brisingr Aerowing24-Sep-17 13:37
professionalBrisingr Aerowing24-Sep-17 13:37 
GeneralRe: Wow, Newtonsoft Deserializer. Wow! Pin
Marc Clifton24-Sep-17 15:42
mvaMarc Clifton24-Sep-17 15:42 
GeneralRe: Wow, Newtonsoft Deserializer. Wow! Pin
Graeme_Grant24-Sep-17 20:57
mvaGraeme_Grant24-Sep-17 20:57 
GeneralRe: Wow, Newtonsoft Deserializer. Wow! Pin
raddevus25-Sep-17 2:12
mvaraddevus25-Sep-17 2:12 
GeneralRe: Wow, Newtonsoft Deserializer. Wow! Pin
Slacker00724-Sep-17 23:32
professionalSlacker00724-Sep-17 23:32 
GeneralRe: Wow, Newtonsoft Deserializer. Wow! Pin
Nathan Minier25-Sep-17 1:58
professionalNathan Minier25-Sep-17 1:58 
QuestionQuestion about Kindle Fire virus cleaner Pin
Member 1168456324-Sep-17 11:02
Member 1168456324-Sep-17 11:02 
AnswerRe: Question about Kindle Fire virus cleaner Pin
Brisingr Aerowing24-Sep-17 11:07
professionalBrisingr Aerowing24-Sep-17 11:07 
GeneralRe: Question about Kindle Fire virus cleaner Pin
Member 1168456324-Sep-17 11:43
Member 1168456324-Sep-17 11:43 
GeneralRe: Question about Kindle Fire virus cleaner Pin
Brisingr Aerowing24-Sep-17 13:40
professionalBrisingr Aerowing24-Sep-17 13:40 
GeneralRe: Question about Kindle Fire virus cleaner Pin
Member 1168456325-Sep-17 20:52
Member 1168456325-Sep-17 20:52 
AnswerRe: Question about Kindle Fire virus cleaner Pin
Gary Wheeler25-Sep-17 5:56
Gary Wheeler25-Sep-17 5:56 
GeneralRe: Question about Kindle Fire virus cleaner Pin
Member 1168456325-Sep-17 17:21
Member 1168456325-Sep-17 17:21 
GeneralI was sent this, and... Pin
OriginalGriff24-Sep-17 8:45
mveOriginalGriff24-Sep-17 8:45 
GeneralRe: I was sent this, and... Pin
David O'Neil24-Sep-17 16:10
professionalDavid O'Neil24-Sep-17 16:10 
GeneralA beautiful early fall day in Toronto Pin
Ravi Bhavnani24-Sep-17 5:47
professionalRavi Bhavnani24-Sep-17 5:47 

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.