C#: Measure execution time of a method using System.Diagnostics.Stopwatch Nadeem Yousuf December 21, 2012 One of the easiest ways of measuring the execution time of a method is to use System.Diagnostics . Stopwatch Suppose you have a method c... Read More
C#: Check if arrays contain any similar item Nadeem Yousuf December 13, 2012 Following code can be used to check if two arrays contain any similar item or not: string [] allLocations = { "New York" , ... Read More
C#: Get distinct values from list c# Nadeem Yousuf November 14, 2012 Suppose we have a City class: public class City { public string CityName { get ; set ; } public string C... Read More