Geeks With Blogs
HanSolo code monkey November 2008 Entries
ThreadStatic attribute
Here is a handy little attribute:

[ThreadStatic]
private static int count;

This attribute allows you to create a separate static instance of "count" per thread.

Posted On Saturday, November 29, 2008 12:06 PM

Scary times ahead
With the recent down turn in the economy, companies are starting to layoff workers to save a few bucks. Which drives home the point for me that it does not matter who you work for or what you do, being let go is always a possibility. As software developers, we should never stop improving and learning. While that may not prevent you from getting axed, even if that happens, you will leave as a better developer and take away with you all the experiences that you've learned, and should land on your feet ......

Posted On Saturday, November 22, 2008 4:07 PM

Version Tolerant Serialization
At times you may need to update your objects and add additional properties, and maybe you still have old clients that consume your objects, so you will need to update your objects in a way that makes it backwards compatible. That's where Version Tolerant Serialization comes in. Let's say you have an object with one property. You add a second property called "MyProperty2", and the change needs to be version tolerant. You can implement ISerializable and do this: public void GetObjectData(Serialization... ......

Posted On Saturday, November 22, 2008 2:26 PM

VS 2010 and CHESS
Can't wait to play around with the new Visual Studio 2010. There are some cool stuff coming, including a concurrency troubleshooting tool called CHESS. Many a times, I've felt like I was at the edge of insanity trying to track down a concurrency bug. This tool may come in handy. From Microsoft: CHESS: CHESS is a tool for finding and reproducing Heisenbugs in concurrent programs. CHESS attaches to a concurrent program and takes complete control over the thread scheduling. This allows CHESS to drive ......

Posted On Saturday, November 22, 2008 1:26 PM

LINQ for dummies
For anyone who is interested in learning LINQ, there is a great tool available called LINQPad. It comes pre-loaded with over 200 examples to make learning easier. It is really useful for testing your LINQ queries. And best of all, it is FREE! Download it here ......

Posted On Wednesday, November 19, 2008 11:04 PM

Copyright © HanSolo | Powered by: GeeksWithBlogs.net