Configure Visual Studio 2013 for debugging .NET framework

In order to configure Visual Studio 2013 do the following in the Tools -> Options -> Debugging -> General menu:

  • Disable just my code
  • Disable step over properties and operators
  • Disable require source files to exactly match the original version
  • Enable .NET framework source stepping
  • Enable source server support

This is what you need to do:


Visual Studio Short cuts.

Learn NEW Stuffs


Shortcut keysDescription
Ctrl+SSave current file.
Ctrl+Shift+SSave all files.
Ctrl+Shift+NNew project.
Shift+Alt+NNew website.
Ctrl+NNew file.
Ctrl+Shift+OOpen project/solution.
Shift+Alt+OOpen website.
Ctrl+OOpen file.
Ctrl+Shift+VCycle Clipboard Ring
Ctrl+ASelect All
Ctrl+FQuick Find
Ctrl+HQuick Replace
Ctrl+Shift+FFind in Files
Ctrl+Shift+HReplace in Files
Alt+F12Find Symbol
Ctrl+GGo To
Ctrl+,Navigate To


Shortcut keysDescription
Ctrl+E,DFormat Document
Ctrl+E,FFormat Selection
Ctrl+UMake Lowercase
Ctrl+E,Delete Horizontal White Space
Ctrl+E,SView White Space
Ctrl+E,WWord Wrap
Ctrl+E,WWord Wrap
Ctrl+IIncremental search
Ctrl+E,CComment Selection
Ctrl+E,UUncomment Selection

View original post

Covariance and Contravariance. What do they mean again?

My Software Notes

I don’t have to deal with covariance and contravariance very often, so every time I do I forget which is which. So, just for my own benefit, here is a note describing them:

Covariance and contravariance are terms that refer to the ability to use a less derived or more derived type than originally specified.

Covariance – Enables you to use a more specific type than originally specified

E.g., in generics

We have a base type called “Feline” and we have a derived type called “HouseCat”.

IEnumerable<HouseCat> cats = new List<HouseCat>();
IEnumerable<Feline> gods = cats;
//Note: felines have a very high opinion of themselves 🙂

Contravariance – Enables you to use a less derived type than originally specified.

E.g., in generics

Using the same base and derived types as above.

IEnumerable<Feline> gods = new List<Feiline>();
IEnumerable<HouseCat> cats = gods;


Covariance and Contravariance (C# and Visual Basic)

Covariance and Contravariance…

View original post 2 more words

ASP.NET MVC – If only we had it 10 years ago

I realised that one of the technology or rather a group of the technologies that stops me from applying for some jobs is ASP.NET MVC + the usual JavaScript stack.

So I bought 2 books on the subject and have been playing with the technology for couple of days now. And I must say things have improved A LOT since I’ve been doing Web Development.

Back in 2003 I were working on an Order Management System and my boss being a perfectionist and a great fan of Google, requested that we created an order input form, comprised of 6 tabs without any postbacks to the server (‘coz they are evil)

All we had at our disposal was ASP.NET and JavaScript. But somehow we managed to archive what he wanted. We of course had to use some serious black magic to fetch data asynchronously (remember no AJAX back then) instead we realised we could use hidden Iframes to fetch all the required data. And the application (the order entry form) became extremely nice to use.

The traders would no longer have to remember the exact ticker, as long as they knew the name the app would asynchronously go and fetch corresponding tickers.

Once you selected a ticker, you would be presented with some information about the instrument, settlement date and the fees would automatically default based on the market where the instrument was traded on, if it was a bond it will also calculate yield, time to maturity, for convertible bonds it will show you all the greeks and much more (limits, holiday calender per market, settlement periods, compliance stuff, history of changes etc). Not only that but the could switch to a different tab effortlessly to see the executions and modify them if necessary. I’m not going to go to cover the other 95% of features, but the app was brilliant in terms of usability, only Google could complete.


Continue reading “ASP.NET MVC – If only we had it 10 years ago”

Blog at

Up ↑