Profile
Achievement
You have not received any achievements.rengber's Recent Snippets
- All /
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
944
posted 12 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
944
posted 12 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
992
posted 15 years ago by rengber
Useful in cases where the object author has specified their own serialization that doesn't work for you.
1
1005
posted 15 years ago by rengber
Definitely falls into the category of "simple thing I shoulda memorized years ago", but whatever:
0
806
posted 15 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
879
posted 15 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
936
posted 15 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
1115
posted 15 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
879
posted 15 years ago by rengber
Minimal syntax for cursor use. See URL for SQL 2005 options and improvements.
0
954
posted 15 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
1801
posted 15 years ago by rengber
Should work for image/gif as well. Allegedly not supported by IE
0
1433
posted 16 years ago by rengber