Observable Dictionary – implementation

16 בSeptember 2014

,This is not a full implementation but only a starter for dummies ,still it is very nice to look on it and try it by yourself lets face it, Dictionary is one of the complex collections, and to be Observable required good .knowledge in collections , and INotifyCollectionChanged Interface .To be fully implemented we need to extend few parts which I discussed later Back to business , in earlier post I have been demonstrate the needs of ObservableDictionary. LINK But even without this scenario it is simple requirement, I am also wondering why there isn’t built .it in dot net framework :So lets build a simple one What...

C# Serialization Guide Part 11 – Json.Net

,Probably the most popular way to using Json format to/from C# is by Json.Net library This is an great 3party package with great demos and open-source solution, you can download :the full lib from here http://james.newtonking.com/json:   or from codeplex https://json.codeplex.com/ .or directly from visual studio Nuget console Anyway, for read/ write to/from Json format I where show the DataContractJsonSerializer usage :in my former json serialization post http://blogs.microsoft.co.il/uriel99/2014/04/27/c-serialization-guide-part-6-json/ .but using Json.Net Library is very good alternative After you download the files all you need is the proper dll from binary folder for example ,the .Net4.5 version. And add it as reference to you project You can use the service either on local file...
אין תגובות

Observable Dictionary – Introduction

14 בSeptember 2014

:First describe the following scenario ,As a front-end programmer Given object called User, User class has much data include name property .Now, to be clear we are not allow to touching this class its protected from changes ,Well our goal is present in App UI a list of Users, but with different names .Meaning, do not show the original name only a nickname for each User Item :Well, few solutions could overcame here , we can template this object with DTO class like Public class DTOUser { IUSer user; String userNickNAme; } :Or to inherited User like Public class PresentedUser : User { String...