Freigeben über


jaredpar's WebLog

Code, rants and ramblings of a programmer.

Tuples Part 3: Type Inference Friendly Constructor

Last time we were left with a constructor that required us to explicitly specify generic parameters....

Author: JaredPar MSFT Date: 01/07/2008

Tuples Part 2: Basic Structure

Part 1 of the series outlined the basic structure of the tuple. This entry will produce a PowerShell...

Author: JaredPar MSFT Date: 01/04/2008

Tuples Part 1

A tuple in computer science can be described as a set of name/value pairs. In some cases it can be...

Author: JaredPar MSFT Date: 01/03/2008

Ternary: Reducing code

I like my scripts to be readable and terse. They're scripts after all and I want to get the most...

Author: JaredPar MSFT Date: 12/18/2007

C# Lambda Type Inference

One of the limitations of C# type inference is that you cannot use it to infer the type of a lambda...

Author: JaredPar MSFT Date: 12/14/2007

Filtering get-psdrive to all Local Drives

Recently I needed to filter the return of get-psdrive to return all of my local hard drives. I...

Author: JaredPar MSFT Date: 12/06/2007

Types of Immutability

By definition, an immutable object in computer science is one that is not able to change. Parallel...

Author: JaredPar MSFT Date: 12/04/2007

Getting my Fortune

Fortune is a Unix command that gets a random message from a set of databases and displays it on the...

Author: JaredPar MSFT Date: 12/03/2007

ViEmu and Suites

ViEmu is a Visual Studio Package which adds Vim keybinding support into Visual Studio.  For...

Author: JaredPar MSFT Date: 12/02/2007

Calling Extension Methods on Null Objects

One of the gotchas for Extension Methods is that it's legal to call them on Null References. This...

Author: JaredPar MSFT Date: 11/30/2007

Tuples in PowerShell

Tuples in computer science are usually light weight record objects with simple name value pairs. In...

Author: JaredPar MSFT Date: 11/29/2007

Piping elements of a String

Quick script that will allow you to pipe each char in a String into the PowerShell pipeline....

Author: JaredPar MSFT Date: 11/28/2007

Type Inference and IEnumerable

This is somewhat of a follow up on a previous post I did on the difference between IEnumerable(Of T)...

Author: JaredPar MSFT Date: 11/26/2007

AutoSize and DockStyle.Fill don't mix

The title of this post essentially says it all.  AutoSize and DockStyle.Fill don't mix well...

Author: JaredPar MSFT Date: 11/21/2007

VS2008 Ships

Orcas has shipped :) https://msdn2.microsoft.com/en-us/vstudio/default.aspx

Author: JaredPar MSFT Date: 11/19/2007

Lambda Unexpected Behavior

One item you strive to avoid when you design and implement a feature is unexpected behavior. ...

Author: JaredPar MSFT Date: 11/19/2007

Extension Methods without 3.5 Framework

For a time I've been avoiding extension methods. Not because I'm opposed to using them but because...

Author: JaredPar MSFT Date: 11/16/2007

Names of Anonymous Type Members

Recently I was asked how can you get a list of anonymous type member names given a query of...

Author: JaredPar MSFT Date: 11/09/2007

C++ Refactoring: Default booleans and pointers

This is another recount of an experience I had refactoring some C++ code recently. In some ways this...

Author: JaredPar MSFT Date: 10/29/2007

C++ Placement New: Tracking down a crash

See my previous two posts on an introduction to placement new if you are unfamiliar with the...

Author: JaredPar MSFT Date: 10/18/2007

C++ Placement New and Allocators

This is a follow up for my previous post about operator new and placement new. This post will...

Author: JaredPar MSFT Date: 10/17/2007

C++ New Operator and Placement New

Originally I was going to write this article to detail a particular problem I had recently with...

Author: JaredPar MSFT Date: 10/16/2007

Debugging PowerShell

Debugging PowerShell can be extremely frustrating because it often turns into a session of debugging...

Author: JaredPar MSFT Date: 10/15/2007

Select-StringRecurse

When you need to search for text in a file, select-string is your best friend.  It has most of...

Author: JaredPar MSFT Date: 10/08/2007

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...

Author: JaredPar MSFT Date: 10/05/2007

IEnumerable and IEnumerable(Of T)

IEnumerable(Of T) is a huge step up in the 2.0 framework from the original IEnumerable interface. It...

Author: JaredPar MSFT Date: 10/04/2007

.Net Framework Source Code

If you haven't heard the news yet, you can read the full article on ScottGu's Blog. In summary...

Author: JaredPar MSFT Date: 10/03/2007

Casting to an Anonymous Type

This discussion is building upon a previous post on how to acquire an anonymous type ... type. The...

Author: JaredPar MSFT Date: 10/01/2007

Customizing Displays in the Debugger for System Types

We've heard feedback from several customers regarding the way certain types are displayed in the...

Author: JaredPar MSFT Date: 09/28/2007

C++ Literal Number Grammar

Recently I was investigating a bug and ended up investigating the possible values of C++ literals...

Author: JaredPar MSFT Date: 09/27/2007

Testing your code

This is a little off topic from my typical purely technical discussion. I'm a huge advocate of...

Author: JaredPar MSFT Date: 09/26/2007

C# Keyword Identifiers

This falls into the "learn something new everyday but not necessarily entirely useful bucket". An...

Author: JaredPar MSFT Date: 09/12/2007

Singleton Pattern

Quite awhile back I posted about how to create a re-usable singleton pattern in .Net. Link is here....

Author: JaredPar MSFT Date: 09/04/2007

DebuggerNonUserCode and Properties

DebuggerNonUserCode is an attribute that tells the debugger that the target item is not code typed...

Author: JaredPar MSFT Date: 08/29/2007

C++ Frustration: Unions and Constructors

Using PreFast internally we recently came across a class of bugs. In several places we were using...

Author: JaredPar MSFT Date: 08/23/2007

C# Type inference change for Orcas

While playing around with a batch of Orcas code recently I found a welcome change to the C# type...

Author: JaredPar MSFT Date: 08/07/2007

Closures in VB Part 6: Limitations

For previous articles in this series please see ... Part 1: Introduction Part 2: Method Calls Part...

Author: JaredPar MSFT Date: 08/06/2007

PowerShell Simple Tricks: Number to Hex

When investigating bugs a lot of times you start out with an unfamiliar HRESULT value. Searching the...

Author: JaredPar MSFT Date: 08/02/2007

Expression Evaluator Sample Released

The new version of the Visual Studio 2008 Beta2 SDK was just released. Among the many new samples is...

Author: JaredPar MSFT Date: 08/01/2007

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...

Author: JaredPar MSFT Date: 08/01/2007

Coding Quiz: Anonymous Type Types

Question: How can you create a variable in VB which is typed as an anonymous type but not actually...

Author: JaredPar MSFT Date: 08/01/2007

IMetaDataImport::GetParamForMethodIndex

While investigating a recent bug I found about an interesting return for GetParamForMethodIndex. On...

Author: JaredPar MSFT Date: 07/30/2007

Closures in VB Part 5: Looping

For previous articles in the series please see Part 1: Introduction Part 2: Method Calls Part 3:...

Author: JaredPar MSFT Date: 07/26/2007

Closures in VB Part 4: Variable Lifetime

For previous articles in this series please see Part 1: Introduction Part 2: Method Calls Part 3:...

Author: JaredPar MSFT Date: 06/15/2007

Defining Guids

One of the tasks I find to be annoying during development is pasting GUID's into my code. You need...

Author: JaredPar MSFT Date: 06/08/2007

Expression Evaluator SDK

The Expression Evaluator is a VSIP component that allows Visual Studio Languages to plug in a...

Author: JaredPar MSFT Date: 05/25/2007

Closures in VB Part 3: Scope

For previous articles in this series please see Part 1: Introduction Part 2: Method Calls Thus far...

Author: JaredPar MSFT Date: 05/25/2007

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...

Author: JaredPar MSFT Date: 05/03/2007

Closures in VB: Part 1

One of the features I implemented for VB 9.0 is lexical closure support. This a great addition to...

Author: JaredPar MSFT Date: 04/27/2007

CoSetProxyBlanket and Managed Code

When running FxCop on any managed code that uses CoSetProxyBlanket you will see an error message...

Author: JaredPar MSFT Date: 04/19/2007

<Previous Next>