Exceptions
blog on exceptions that i encounter daily.
Tuesday, November 23, 2010
find all listening ports - back to basics
netstat -an |find /i "listening"
open a port from cmd
netsh> add portopening TCP 9353 "xyz"
Saturday, November 13, 2010
And Finally we have Fire And Forget Methods.
async reloaded with fire and forget
why was this not possbile until now
and the corresponding WCF implementation...
http://blogs.msdn.com/b/endpoint/archive/2010/11/13/simplified-asynchronous-programming-model-in-wcf-with-async-await.aspx
Monday, November 8, 2010
Eliminate if else statements for disabling and enabling controls
if (count > 0)
{
this.control.Enabled = false;
}
else
{
this.control.Enabled = true;
}
// this is 1 line compared to what we have above.
this.control.Enabled = (count <= 0);
Tuesday, November 2, 2010
DateTime vs DateTimeOffset
if (you are developing applications with globalization in mind)
{
use DateTimeOffset
}
else
{
use dateTime
}
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)