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
Hub FS
Full List

Browse by Tags

All Tags » DotNet   (RSS)
BclExtras Library
I published a .Net utility library on Code Gallery today called BclExtras .  It’s a set of classes meant to be used in addition to the standard .Net base class libraries (BCL).  The main focuses of the library are functional programming, multi-threading, Read More...

Posted Friday, January 23, 2009 8:00 AM by Jared Parsons | 2 Comments

Filed under: , , ,

Is IntPtr(long) truncating?
The short answer is: No, not when it matters A colleague and I were discussing a particular scenario around IntPtr,PInvoke and 64 bit correctness.  Eventually our discussion lead us to the IntPtr constructor which takes a long.  To my surprise Read More...

Posted Tuesday, October 28, 2008 8:00 AM by Jared Parsons | 1 Comments

Filed under: , ,

RantPack - A utility library
I often post code examples, samples and snippets on this blog. Many of these samples are a part of a utility library I've been writing and maintaining for many years now. Essentially since I got involved in DotNet programming. I write a lot of code for Read More...

Posted Wednesday, April 30, 2008 11:47 PM by Jared Parsons | 1 Comments

Filed under: ,

IEnumerable and IEnumerable(Of T) 2
Quick follow up to my earlier post . Fixing this issue in C# is even easier because of the existence of iterators. public static IEnumerable < object > Shim(System.Collections. IEnumerable enumerable) { foreach ( var cur in enumerable) { yield return Read More...

Posted Friday, October 05, 2007 11:43 AM by Jared Parsons | 3 Comments

Filed under: , ,

.Net Framework Source Code
If you haven't heard the news yet, you can read the full article on ScottGu's Blog . In summary Microsoft has released the source code for the .Net Framework in such a way that you can step into the Framework while debugging. IMHO this is great for users Read More...

Posted Wednesday, October 03, 2007 2:58 PM by Jared Parsons | 1 Comments

Filed under: ,

Closures in VB Part 6: Limitations
For previous articles in this series please see ... Part 1: Introduction Part 2: Method Calls Part 3: Scope Part 4: Variable Lifetime Part 5: Looping As powerful as closures are in the language they do have a few limitations. We worked hard in Orcas to Read More...

Posted Monday, August 06, 2007 6:36 PM by Jared Parsons | 0 Comments

Filed under: , , ,

Detecting if you are an Admin
This came up on an internal alias. A customer wanted to know how to determine if there were running as an admin in a tool. Below is a sample program that will print out whether or not you are the machine admin or a member of the machine administrators Read More...

Posted Wednesday, August 01, 2007 11:56 AM by Jared Parsons | 0 Comments

Filed under: , ,

Coding Quiz: Anonymous Type Types
Question: How can you create a variable in VB which is typed as an anonymous type but not actually create an instance of that type? Answer in comments. Note, doing this is not particularly useful it came about while I was playing around with a feature Read More...

Posted Wednesday, August 01, 2007 11:34 AM by Jared Parsons | 3 Comments

Filed under: , , ,

IMetaDataImport::GetParamForMethodIndex
While investigating a recent bug I found about an interesting return for GetParamForMethodIndex. On a perfectly verifiable assembly, a call to GetParamForMethodIndex was returning a failure code. After some searching I found the return code was CLDB_E_RECORD_NOTFOUND. Read More...

Posted Monday, July 30, 2007 1:09 PM by Jared Parsons | 0 Comments

Filed under: , ,

Closures in VB Part 5: Looping
For previous articles in the series please see Part 1: Introduction Part 2: Method Calls Part 3: Scope Part 4: Variable Lifetime Once again sorry for the long delay between posts. Looping structures can cause unintended consequences when used with Lambda Read More...

Posted Thursday, July 26, 2007 12:39 PM by Jared Parsons | 2 Comments

Filed under: , , ,

Closures in VB Part 4: Variable Lifetime
For previous articles in this series please see Part 1: Introduction Part 2: Method Calls Part 3: Scope Sorry for the long delay between posts here. We're getting Orcas out the door and getting this series completed takes a back door to shipping. Originally Read More...

Posted Friday, June 15, 2007 4:47 PM by Jared Parsons | 2 Comments

Filed under: , , ,

Closures in VB Part 3: Scope
For previous articles in this series please see Part 1: Introduction Part 2: Method Calls Thus far in the series we've only lifted variables that are declared in the same block/scope. What happens if we lift variables in different scope? The answer is Read More...

Posted Friday, May 25, 2007 4:59 PM by Jared Parsons | 3 Comments

Filed under: , , ,

Closures in VB Part 2: Method Calls
For previous articles in this series, please see Part 1 - The basics This part of the series will focus on how method calls are handled in closures. As stated in the previous article, the purpose of closures is to allow all operations inside a lambda Read More...

Posted Thursday, May 03, 2007 5:56 PM by Jared Parsons | 9 Comments

Filed under: , , ,

Closures in VB: Part 1
One of the features I implemented for VB 9.0 is lexical closure support. This a great addition to the VB language and I wanted to do a series of blog posts to describe this feature and how it will impact your code. Lexical Closures (more often referred Read More...

Posted Friday, April 27, 2007 6:50 PM by Jared Parsons | 7 Comments

Filed under: , , ,

CoSetProxyBlanket and Managed Code
When running FxCop on any managed code that uses CoSetProxyBlanket you will see an error message saying the method cannot be called reliably from managed code. I've hit that message before was frustrated by my attempts to find an explanation on the web. Read More...

Posted Thursday, April 19, 2007 12:15 PM by Jared Parsons | 0 Comments

Filed under: , ,

More Posts Next page »
Page view tracker