Browse by Tags

All Tags » C# (RSS)

50% Discount on Microsoft Press E-Books in O'REILLY by hajan

I've just get informed for an excellent Ebok Deal of the Day about 50% discount on Microsoft Press E-Books in O'REILLY website. I thought this would be valuable information to share it with all my blog readers so that you can buy your favorite book before...
Filed under: , , , ,

Amazon Simple Pay in ASP.NET by hajan

During the past few weeks, I had a chance to work with various payment systems for some project requirements. It’s interesting to mention that I was lucky to work on multiple projects dealing with payment systems, which gave me very great experience in...

Find Code Cyclomatic Complexity with NDepend by hajan

Cyclomatic Complexity or also known as ‘Conditional Complexity’ is measurement of complexity of a program code. The cyclomatic complexity is calculated using the control flow graph of the program, so this is based on the graph theory. Code Cyclomatic...

Tips and Tricks: Deferred execution using LINQ by hajan

Few days ago I was watching the Scott Allen’s video where he shows some interesting tips and tricks and ways to optimize your LINQ code. The following blog refers to one of his first tips in the video, so I’ve tried some tests which I’m going to explain...
Filed under: , , , ,

Using System.Diagnostics.Stopwatch class to measure the elapsed time by hajan

I’ve been playing around with the Stopwatch class using .NET Framework 4.0. It contains great set of methods which you can use to measure the elapsed time while your code executes. It's definitely better to use Stopwatch instead of DateTime or TimeSpan...

Conflicts between ASP.NET AJAX UpdatePanels & jQuery functions by hajan

In one of my previous posts dealing with the jQuery DatePicker , a user commented reporting an issue where he uses the jQuery DatePicker and ASP.NET AJAX UpdatePanels. He says: On the same control that I have the date picker, I also have an ajax update...
Filed under: , , ,

Calculate Business Days using LINQ by hajan

In this blog post, I will show one simple way to get the total business days within given range of two dates. Question related to this topic was asked several times in many ASP.NET / .NET Communities, so I thought it would be very good to document it...
Filed under: , ,

Get Distinct values of an Array using LINQ by hajan

In this blog post, I will show how you can filter your array and remove all duplicate elements so that the end result will be array with distinct values. Moreover, the main idea is to do this without using any other (two or more) array(s) to make this...
Filed under: , ,

Using params keyword – Methods with variable number of parameters by hajan

Have you ever come to a situation when you want to create C# method (or in any other language), but you are in doubt what number of parameters your method needs to have? I suppose you do! It’s certain that many of You have already used some collections...
Filed under: ,

Debugging ASP.NET Web Services by hajan

All those who have ever heard about Web Services, already know what is the nature of the Web Services and why these are important especially in Distributed Systems when exchanging data from different operating systems, platforms etc. At first, debugging...
More Posts Next page »