Category «.NET»

async and await in C# 5

C# 5 comes with just a few new features and async is arguably the more important of those. I have started looking into it a couple of days ago and I thought I would share my thoughts on it here. Asynchronous programming was touted was the next big thing for quite some time, but it …

Advanced .NET Debugging – Book Review

This review is for: Advanced .NET Debugging (Paperback) by Mario Hewardt. If you program for the .NET framework you need this book. It helps to take your debugging skills (as well as understanding of the platform) to the next level. How many times in the past have we tried to nail down a particularly tricky …

Functions in F# Part 2

I had written a post on Functions in F# a couple of days ago and Binil posted a comment which prompted me to post a follow up to add some information that I left out in the original post. F# Syntax F# has two syntax forms available – a lightweight syntax and a verbose syntax. …

Plans for 2010 Part 2

As I have posted here, I have made some resolutions for the new year. If nothing, just for the fun. I have to add two more things to the list. Learning F# and Reducing my weight. I have been trying to learn F# for over a year now (maybe even a little more). I have …

Functions in F#

Wikipedia says that …functional programming is a programming paradigm that treats computation as the evaluation of mathematical functions and avoids state and mutable data. It emphasizes the application of functions… The point I wish to make here is that functions are the  most important “things” in a functional programming language. You can say that functions …

Duck Typing using C# 4.0

using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { QuackTheQuacker(new Toy()); QuackTheQuacker(new Duck()); } static void QuackTheQuacker(dynamic quacker) { quacker.Quack(); } } class Toy { public void Quack() { Console.WriteLine("A toy that quacks"); } } class Duck { public void Quack() { Console.WriteLine("A duck that quacks"); } } }

Getting Access Denied Errors in your WCF service or ASP.NET application ?

We are using impersonation in our WCF Service so that credentials of the user can flow to the backend layer (where authorization is done). Strangely we were getting Access Denied errors when the client tries to connect to the service. The error message was like: Could not load file or assembly ‘MyAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’ …