Click here to Skip to main content
15,900,108 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: Tada! A new serializer is coming! Pin
curtis175723-Jun-16 18:32
curtis175723-Jun-16 18:32 
GeneralRe: Tada! A new serializer is coming! Pin
Super Lloyd21-Jun-16 23:27
Super Lloyd21-Jun-16 23:27 
GeneralRe: Tada! A new serializer is coming! Pin
Marc Clifton22-Jun-16 1:44
mvaMarc Clifton22-Jun-16 1:44 
GeneralRe: Tada! A new serializer is coming! Pin
Super Lloyd22-Jun-16 2:15
Super Lloyd22-Jun-16 2:15 
GeneralRe: Tada! A new serializer is coming! Pin
Super Lloyd22-Jun-16 9:41
Super Lloyd22-Jun-16 9:41 
GeneralRe: Tada! A new serializer is coming! Pin
Super Lloyd2-Jul-16 2:46
Super Lloyd2-Jul-16 2:46 
GeneralRe: Tada! A new serializer is coming! Pin
peterchen22-Jun-16 6:07
peterchen22-Jun-16 6:07 
GeneralRe: Tada! A new serializer is coming! Pin
Super Lloyd22-Jun-16 9:57
Super Lloyd22-Jun-16 9:57 
Hey,

The intent of this serializer is to replace JsonSerializer (NOT the .NET Serializer) (i.e it's a document serialize, won't work on WPF/WinForm class, unfortunately...) while being way more compact, support IList, IDictionary (normal and generic version), be strongly typed yet type error tolerant. I also dropped human readability format. Text output is just for (painful) debugging purpose.
It also DOES NOT support delegates.
It is, indeed, not perfect....
Also it doesn't support TypeConverter / ValueConverter / ISerializable, but I am thinking to add support for them...

So to address each point in detail:
- by default it only serialize public fields and property. This can be modified with attribute on the class and/or field/property.
- what about versioning? It doesn't care if the property is missing while deserializing it is ignored
- class invariant... Right now one can enumerate all reference object deserialized with the ObjectContext of the deserializer. I was thinking / maybe to go one step further and create an IDeserialized interface to automatically "awake / complete" objects after deserialization
- also difficult type to serialize can be helped with an "easy" to implement ISurrogate<> class, define this class to replace problematic type when serializing / deserializing
C#
public interface ISurrogate<T> {
  void Initialize(T value); // called when serializing
  T Instance(); // called when deserializing
}

- thinking of WPF.. I just realized that some readonly property (such as Children UI component) while being readonly, can still be serialized as an IList, should be fixed by publication time! Wink | ;)
Forget that, it cause too much ambiguity about the serizalizer, since it can also (optionally) serialize private field.
All in one Menu-Ribbon Bar
DirectX for WinRT/C# since 2013!
Taking over the world since 1371!


modified 22-Jun-16 16:58pm.

GeneralRe: Tada! A new serializer is coming! Pin
peterchen23-Jun-16 23:40
peterchen23-Jun-16 23:40 
GeneralRe: Tada! A new serializer is coming! Pin
Super Lloyd24-Jun-16 0:00
Super Lloyd24-Jun-16 0:00 
GeneralRe: Tada! A new serializer is coming! Pin
peterchen24-Jun-16 1:43
peterchen24-Jun-16 1:43 
GeneralRe: Tada! A new serializer is coming! Pin
Super Lloyd24-Jun-16 1:49
Super Lloyd24-Jun-16 1:49 
GeneralRe: Tada! A new serializer is coming! Pin
Super Lloyd2-Jul-16 2:47
Super Lloyd2-Jul-16 2:47 
GeneralRe: Tada! A new serializer is coming! Pin
peterchen4-Jul-16 2:27
peterchen4-Jul-16 2:27 
GeneralRe: Tada! A new serializer is coming! Pin
Super Lloyd4-Jul-16 14:41
Super Lloyd4-Jul-16 14:41 
GeneralRe: Tada! A new serializer is coming! Pin
Kent Bolton22-Jun-16 20:05
Kent Bolton22-Jun-16 20:05 
GeneralRe: Tada! A new serializer is coming! Pin
Super Lloyd22-Jun-16 20:07
Super Lloyd22-Jun-16 20:07 
GeneralRe: Tada! A new serializer is coming! Pin
Thornik23-Jun-16 0:53
Thornik23-Jun-16 0:53 
GeneralRe: Tada! A new serializer is coming! Pin
Super Lloyd23-Jun-16 11:15
Super Lloyd23-Jun-16 11:15 
GeneralRe: Tada! A new serializer is coming! Pin
_groo_23-Jun-16 2:53
_groo_23-Jun-16 2:53 
QuestionRe: Tada! A new serializer is coming! Pin
Super Lloyd23-Jun-16 11:23
Super Lloyd23-Jun-16 11:23 
PraiseRe: Tada! A new serializer is coming! Pin
Ksmith @ MC Weekly23-Jun-16 6:47
Ksmith @ MC Weekly23-Jun-16 6:47 
GeneralRe: Tada! A new serializer is coming! Pin
Super Lloyd23-Jun-16 11:24
Super Lloyd23-Jun-16 11:24 
GeneralRe: Tada! A new serializer is coming! Pin
HenryWDC24-Jun-16 5:50
HenryWDC24-Jun-16 5:50 
GeneralRe: Tada! A new serializer is coming! Pin
Super Lloyd24-Jun-16 10:36
Super Lloyd24-Jun-16 10:36 

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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   482 votes