June 2011 - Posts

18
Comments

Extension methods on a null object instance by nmarun

Extension methods gave developers with a lot of bandwidth to do interesting (read ‘cool’) things. But there are a couple of things that we need to be aware of while using these extension methods. I have a StringUtil class that defines two extension methods...
Filed under: , ,
2
Comments

IEnumerator.Current property and IEnumerator.MoveNext method by nmarun

Here’s a question: What happens to the Current property of an IEnumerator before and after the MoveNext() call? When I say ‘after the MoveNext() call’, I mean after MoveNext() returns a false indicating an end of the collection. I was going through the...
Filed under: ,
5
Comments

Sort method versus OrderBy LINQ extension method by nmarun

I have a class Product with an Id and a Name as properties. There are multiple ways of getting a list of products to display in sorted/ordered fashion, say, by the Name of the product. The two I’m concerned about here are the Sort and the OrderBy extension...
Filed under: , ,
3
Comments

WCF Service Trace Viewer Part 2 by nmarun

Continuing from the previous part , now we’ll have a look at what happens when we call the service using WSHttpBinding. For this, I have to instantiate my LearnWcfService service passing the WSHttp binding endpoint to the constructor. The rest of the...
6
Comments

WCF Service Trace Viewer Part 1 by nmarun

I hit upon this tool SvcTraceViewer.exe and found it quite interesting. Usually located at <drive>:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools (for version .net 4.0), this tool helps you to locate an error that’s happening behind...
0
Comments

FeedBurner not getting my latest blog articles from weblogs.asp.net–need help by nmarun

This is more of an ‘I need help’ kind of an article. So, my feed stopped getting updated with my blogs – a few of my blogs from April and May do not show up in the feed. Blog site: http://weblogs.asp.net/nmarun (duh!) Blog RSS: http://weblogs.asp.net...
Filed under:
More Posts