Welcome to MSDN Blogs Sign in | Join | Help

jaredpar's WebLog

Code, rants and ramblings of a programmer.

Syndication

News

Now Reading

Expert F#

What's a better book to read when learning F#?

Essential WPF

Thus far the best book I've read on WPF. Gets right down to working with WPF and the goals/history.

Purely Functional Data Structures

Reading this book makes me feel like I'm back in college. It will really get your mind going and is best read with a whiteboard handy.

Blog Roll

Eric Lippert
Dustin Campbell
Jon Skeet
Coding Horror
Brian McNamara
Brian Bondy
Hub FS
Full List

Browse by Tags

All Tags » Gotcha » C#   (RSS)
Is it Serializable?
I’ve recently run across several APIs that have a dependency on only dealing with objects that are serializable (in the binary sense).  Unfortunately determining if an object is serializable is a non-trivial task and rife with problems.  These Read More...

Posted Tuesday, March 31, 2009 8:00 AM by Jared Parsons | 3 Comments

Filed under: , ,

When can you catch a StackOverflowException?
Answer: When you're the one who threw it.  Starting with the CLR version 2.0, the policy for handling a StackOverflowException was changed.  User code can no longer handle the exception[1].  Instead the CLR will simply terminate the process.  Read More...

Posted Wednesday, October 22, 2008 8:00 AM by Jared Parsons | 0 Comments

Filed under: , ,

A Lesson in Serialization
A few days ago, I recklessly added a [Serialization] attribute to a few of my immutable collection types.  I needed to pass data between AppDomain's and adding [Serialization] was the quick and dirty fix.  Compiled, ran and I didn't think much Read More...

Posted Tuesday, September 02, 2008 8:00 AM by Jared Parsons | 2 Comments

Filed under: , , ,

Don't mix using statements and lambda expressions
Title pretty much says it all but what good is a rule without any explanation. The main issue here is that at the core, using statements and lambda expressions both alter variable lifetimes. Unfortunately they alter the lifetime in different directions. Read More...

Posted Wednesday, July 16, 2008 8:00 AM by Jared Parsons | 15 Comments

Filed under: ,

Immutability and ReadOnlyCollection<T>
I am a huge fan of read only/immutable collections and data. Hopefully the increased exposure through the blogosphere alerted users to the advantages of this type of programming for the appropriate scenarios. I wanted to discuss ReadOnlyCollection<T> Read More...

Posted Tuesday, April 22, 2008 8:42 AM by Jared Parsons | 1 Comments

Filed under: , , ,

Gotcha: Generic overload resolution when called generically
Both VB and C# have a feature of generic overload resolution that is fairly helpful and yet a source of gotchas. Lets say you have two methods with the same number of arguments. One method has arguments with generic types and the other does not. For Example: Read More...

Posted Monday, April 14, 2008 8:30 AM by Jared Parsons | 1 Comments

Filed under: , ,

Page view tracker