Welcome to DetlefGrohs.com
Sign in
|
Join
|
Help
WTF 3.12
My ramblings about anything that makes me say WTF!
This Blog
About
Email
Calendar
Feb
March 2009
Apr
S
M
T
W
T
F
S
22
23
24
25
26
27
28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
Search
Go
Syndication
RSS 2.0
Atom 1.0
Archives
November 2009 (1)
October 2009 (1)
September 2009 (1)
July 2009 (2)
June 2009 (2)
May 2009 (3)
April 2009 (11)
March 2009 (12)
February 2009 (5)
January 2009 (1)
December 2008 (2)
November 2008 (7)
September 2008 (2)
March 2008 (1)
January 2008 (2)
December 2007 (1)
November 2007 (5)
October 2007 (36)
September 2007 (19)
August 2007 (1)
June 2007 (23)
April 2007 (3)
March 2007 (2)
February 2007 (4)
November 2006 (8)
October 2006 (1)
September 2006 (3)
August 2006 (11)
June 2006 (7)
May 2006 (31)
April 2006 (7)
Navigation
Home
Blogs
Forums
Photos
Files
Reader
Roller
Post Categories
.NET (33)
Blogging (30)
Cats (2)
Coding (13)
General (34)
Motivation/GTD (2)
Oblivion (2)
Poker (14)
Polyphasic (1)
SharePoint (7)
Technology/Internet (30)
TV/Movies (5)
Weird/Interesting (4)
XBox360 (40)
Wednesday, March 04, 2009 - Posts
Wednesday, March 04, 2009 11:54 AM
Web Service Proxy Using and Exception Handling Pattern
Here is the pattern that I currently use for Web Service proxy requests that handles the cleaning up of server and client resources properly. 1: using (WSProxyClient proxy = new WSProxyClient()) 2: { 3: try 4: { // Call the service
posted by
detlef
|
0 Comments
Filed Under:
.NET
Wednesday, March 04, 2009 11:06 AM
Using Explorations
I noted some odd behavior with the use of the ‘using’ keyword in C#. Using the following class that implements IDisposable: 1: namespace UsingExplorations 2: { 3: using System; 4: public class DisposableClass : IDisposable 5: { 6:
posted by
detlef
|
0 Comments
Filed Under:
.NET
Wednesday, March 04, 2009 9:19 AM
Null Coalescing Operator
I really like the Null Coalescing Operator (??) especially when coupled with the ‘as’ keyword that allows for statements such as: 1: string string_value = (data_row["StringColumn"] as string) ?? string.Empty; 2: double double_value = (data_row["DoubleColumn"]
posted by
detlef
|
0 Comments