Monthly Archives: July 2010

Why, when and how need to use Interlocked.Add? By Example

Try the code below.   class Test   {     public static void Add(ref long total, long finalResult) { total = finalResult; }       static void Main()     {       int[] nums = Enumerable.Range(0, 1000000).ToArray();       long total = … Continue reading

Posted in .Net | Leave a comment

Microsoft Visual Studio Team Explorer Everywhere 2010

This time is the short blog without coding but using TFS for eclipse. To enable Eclipse to use TFS download the Microsoft Visual Studio Team Explorer Everywhere 2010. Resources: http://msdn.microsoft.com/en-us/vstudio/ff637362.aspx http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=af1f5168-c0f7-47c6-be7a-2a83a6c02e57

Posted in Uncategorized | Leave a comment

How do you know what LINQ has sent to SQL Server – ToTraceString()

How do you know what LINQ has sent to SQL Server? One of the way is using ToTraceString() like below.   class Program   {     static void Main(string[] args)     {       BeancurdEntities context = new BeancurdEntities();         … Continue reading

Posted in .Net | Leave a comment

SSIS Script Component Sample

I have been searching a simple downloadable sample from the web. Guess what… I cannot get one after searching for 2 nights. I decide to come out with a simple sample by reading some sites. Finally I got something that … Continue reading

Posted in Uncategorized | Leave a comment

TechInsights 2010 Parallel Programming samples download

Thanks for attending the Parallel Programming session during TechInsights 2010 KL. The samples are location at my skydrive named Parallel2010TechInsights.rar

Posted in Uncategorized | Leave a comment