Geeks With Blogs

Maziar Taheri Abkenar July 2012 Entries
Serializing Singleton Objects (C#)
Technorati Tags: Serialization,ISerializable... Patterns You know that when you serialize an object and then deserialize the main object and the deserialized one are different objects (different references). So what if you do not intend such behavior i.e in a singleton class. I’m almost certain that everyone is familiar with singleton pattern that solves the problem of having only 1 instance of a class in the entire application; so I’m not giving a speech about that here. Assume we ......

Posted On Thursday, July 19, 2012 6:12 PM

Creating Item Templates as Visual Studio 2010 Extensions
Technorati Tags: Visual Studio 2010 Extension,T4 Template,VSIX,Item Template Wizard This blog post briefly introduces creation of an item template as a Visual studio 2010 extension. Problem specification Assume you are writing a Framework for data-oriented applications and you decide to include all your application messages in a SQL server database table. After creating the table, your create a class in your framework for getting messages with a string key specified. var message = FrameworkMessages.Get("Chan... ......

Posted On Tuesday, July 3, 2012 3:13 PM

Copyright © Maziar Taheri | Powered by: