rengber


Member since 07/25/2006

Location: New Zealand

Website: http://rengberg.blogspot.com/

57 snippets

14439 profile views

2 Comment(s) Posted

View their favorites

Profile

Achievement

You have not received any achievements.

rengber's Recent Snippets



« Prev 1 2
Lambda expression to convert an array.
0 1989 posted 13 years ago by rengber
Again, A-B-C. All the Behaviour garbage that "Add Service Reference" inserts for the TCP binding is unnecessary, especially if the Operation Contract is only for simple value types.
0 2670 posted 14 years ago by rengber
ABC - Address Binding Contract Note that the Service Name and Contract must match a real live type (case Sensitive) Binding name is also case sensitive.
0 2673 posted 14 years ago by rengber
I am forever forgetting this. Have to look up the 101 vs 103 in books online every time. Also forget which way around is US/NZ format. :-)
1 2043 posted 16 years ago by rengber
Dead simple, but often forgotten.
1 1732 posted 16 years ago by rengber
Useful in cases where the object author has specified their own serialization that doesn't work for you.
1 1860 posted 16 years ago by rengber
Definitely falls into the category of "simple thing I shoulda memorized years ago", but whatever:
0 1544 posted 16 years ago by rengber
From StackOverflow. I'm still not quite happy with my understanding of it, but it looks an order of magnitude more elegant than most I've found.
0 1623 posted 16 years ago by rengber
Stupidly simple -- just one pitfall: class to be bound must have Get/Set methods for reflection to discover. Which is annoying when it comes to client side classes auto generated from WSDL.
0 1759 posted 16 years ago by rengber
Say that you have a collection of objects empty but for IDs. You want to do a foreach loop through those objects and lookup detail one at a time. Unfortunately, in the foreach, you can't replace the references, you can only copy the new detail...
1 2153 posted 16 years ago by rengber
This is stupidly simple, but I always forget it.
1 1666 posted 16 years ago by rengber
This as it sits isn't an improvement on what happens by default. It's only useful combined with a compensating transaction or sad path in the catch block, or in allowing a loop to continue.
0 1573 posted 17 years ago by rengber
Minimal syntax for cursor use. See URL for SQL 2005 options and improvements.
0 1636 posted 17 years ago by rengber
Found this in some code I've been maintaining/expanding. Quite clever. Picture an array of bytes in binary 00000111 11100000 00000000 00000000 Now picture an Int32 in Binary 00000000000000000000000000000000 To grab a Little Endian I...
0 2904 posted 17 years ago by rengber
Should work for image/gif as well. Allegedly not supported by IE
0 2597 posted 17 years ago by rengber
1 1403 posted 17 years ago by rengber
From 4 Guys from Rolla
1 1444 posted 18 years ago by rengber
Shows the browser that an RSS feed is available for a page.
2 1853 posted 18 years ago by rengber
0 1403 posted 18 years ago by rengber
Pretty intuitive, might be an easier/simpler way.
0 1691 posted 18 years ago by rengber
« Prev 1 2