Sign in
jaredpar's WebLog
Code, rants and ramblings of a programmer.
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
About
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Tags
API Design
C#
C++
Closures
Debugging
DotNet
F#
Futures
Generics
Gotcha
Immutable
Lambda
LINQ
Misc
Orcas
Patterns
PInvoke
PowerShell
Rant
Threading
Tuple
Type Inference
VB
Visual Studio
VsVim
Archive
Archives
February 2013
(1)
August 2012
(1)
May 2012
(1)
July 2011
(1)
March 2011
(3)
January 2011
(3)
November 2010
(2)
October 2010
(2)
September 2010
(1)
July 2010
(5)
June 2010
(8)
May 2010
(2)
April 2010
(1)
March 2010
(2)
February 2010
(5)
January 2010
(2)
December 2009
(6)
November 2009
(3)
October 2009
(1)
September 2009
(1)
August 2009
(1)
June 2009
(2)
May 2009
(1)
April 2009
(3)
March 2009
(2)
February 2009
(3)
January 2009
(10)
December 2008
(6)
November 2008
(7)
October 2008
(20)
September 2008
(8)
August 2008
(11)
July 2008
(5)
June 2008
(13)
May 2008
(9)
April 2008
(16)
March 2008
(7)
February 2008
(11)
January 2008
(13)
December 2007
(6)
November 2007
(9)
October 2007
(10)
September 2007
(5)
August 2007
(8)
July 2007
(2)
June 2007
(2)
May 2007
(3)
April 2007
(3)
February 2007
(3)
January 2007
(8)
December 2006
(3)
November 2006
(2)
October 2006
(4)
September 2006
(1)
August 2006
(1)
July 2006
(2)
April 2006
(7)
November 2005
(3)
October 2005
(1)
September 2005
(1)
August 2005
(2)
July 2005
(8)
June 2005
(1)
May 2005
(7)
April 2005
(4)
March 2005
(4)
February 2005
(2)
January 2005
(2)
November 2004
(1)
September 2004
(3)
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
jaredpar's WebLog
Extension Methods without 3.5 Framework
Posted
over 6 years ago
by
JaredPar MSFT
10
Comments
For a time I've been avoiding extension methods. Not because I'm opposed to using them but because of the 3.5 Framework. A lot of the tools I own are designed to be very light weight tools that only require the user to have 2.0 installed on their machine...
jaredpar's WebLog
Tuples in PowerShell
Posted
over 6 years ago
by
JaredPar MSFT
6
Comments
Tuples in computer science are usually light weight record objects with simple name value pairs. In scripting languages it is very handy to create them on the fly. For quite some time I was using associative arrays in PowerShell to do just that. PS>...
jaredpar's WebLog
Type Inference and IEnumerable
Posted
over 6 years ago
by
JaredPar MSFT
2
Comments
This is somewhat of a follow up on a previous post I did on the difference between IEnumerable(Of T) and the IEnumerable interfaces. I've seen several people type in the following code and wonder if there was a fundamental bug in the type inference code...
jaredpar's WebLog
Calling Extension Methods on Null Objects
Posted
over 6 years ago
by
JaredPar MSFT
1
Comments
One of the gotchas for Extension Methods is that it's legal to call them on Null References. This isn't really surprising when you think about the feature. Boiled down to a fundamental level, extension methods are just syntactic sugar for calling a static...
jaredpar's WebLog
Lambda Unexpected Behavior
Posted
over 6 years ago
by
JaredPar MSFT
1
Comments
One item you strive to avoid when you design and implement a feature is unexpected behavior. Unfortunately there is one case we couldn't avoid with Lambda's in VB9. I just ran into the this problem when coding up a handler. I wanted...
jaredpar's WebLog
VS2008 Ships
Posted
over 6 years ago
by
JaredPar MSFT
1
Comments
Orcas has shipped :) http://msdn2.microsoft.com/en-us/vstudio/default.aspx
jaredpar's WebLog
AutoSize and DockStyle.Fill don't mix
Posted
over 6 years ago
by
JaredPar MSFT
1
Comments
The title of this post essentially says it all. AutoSize and DockStyle.Fill don't mix well together. Both properties exist to describe the size relationship relative to the rest of the control but they do so in conflicting ways. AutoSize is...
jaredpar's WebLog
Names of Anonymous Type Members
Posted
over 6 years ago
by
JaredPar MSFT
1
Comments
Recently I was asked how can you get a list of anonymous type member names given a query of anonymous types. The quick answer is that you can use a quick bit of reflection to get back the names. Public Function GetAnonymousTypeMemberNames( Of T)( ByVal...
jaredpar's WebLog
Piping elements of a String
Posted
over 6 years ago
by
JaredPar MSFT
0
Comments
Quick script that will allow you to pipe each char in a String into the PowerShell pipeline. function PipeStringChar() { param ( [string]$toPipe ) for ( $i = 0; $i -lt $toPipe.Length; $i++ ) { write-output $toPipe[$i] } } Alternatively...
Page 1 of 1 (9 items)