Archives
-
Extension methods on a null object instance
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.
-
IEnumerator.Current property and IEnumerator.MoveNext method
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.
-
Sort method versus OrderBy LINQ extension method
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 method through LINQ and the difference between them.
-
WCF Service Trace Viewer Part 2
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 method runs the exact same instructions as before. I have also changed the instantiateData attribute in the app.config file to ClientLogWsHttp.svclog, just to keep the log files separate.
-
WCF Service Trace Viewer Part 1
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 the scenes. It also gives you a better understanding of how things flow with a service.
-
FeedBurner not getting my latest blog articles from weblogs.asp.net–need help
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.