Codelog

foreach(Snippet aSnippet in CodeLog){ aSnippet.GetSolution(); }

DataContracts and WCF

without comments

Since its very long since I blogged, thought I would write about DataContracts in C#. DataContracts is a part of WCF (A.K.A Windows Communication Foundation). If you are writing an application in C# (.NET) that needs to communicate with a server, how do you do it ?? Thats where WCF and DataContracts comes in to picture.

DataContracts are a common agreement between the client and the server there by allowing them to share the data without sharing the actual type represented by the data. In other words, if the client and server needs to communicate, they needn’t share the same type, rather they need to share the DataContracts.

Soon I will get a sample that explains this concept clearly. Meanwhile, peek in to MSDN’s definition of DataContracts.

Written by sudarsanyes

April 24th, 2009 at 9:37 am

Posted in C#, General Programming

Tagged with ,

Leave a Reply