Tag Archives: C#

How to write an NUnit Addin

From version 2.2.x NUnit supports AddIns. Addins can customize NUnit’s internal behavior such as the creation of tests and their execution. An Addin should to implement the interface NUnit.Core.Extensibility.IAddin, which can be found in the assembly nunit.core.interfaces. Also the NUnit.Core.Extensibility.NUnitAddinAttribute … Continue reading

Posted in .Net, Miscellaneous, Unit Testing | Tagged , , , , | 1 Comment

How to add MEX endpoints programmatically

The Metadata Exchange Endpoint (MEX) is a special endpoint in WCF that exposes metadata used to describe a service.Without the MEX, you will not be able to use svcutil.exe to automatically generate a proxy class. Fortunately, it is a simply … Continue reading

Posted in .Net, .Net 4.0, WCF | Tagged , , , , , | 1 Comment

How to compress JPEG image using C#

Here is a C# snippet which helps to compress JPEG image. Also displays how much size got reduced.

Posted in .Net, .Net 3.0 / 3.5, .Net 4.0 | Tagged , , , | 1 Comment

How to get Build Definitions and Build Details from TFS 2010

This snippet which will connect to TFS Server and get all running builds for all build definitions, using TFS Client API. Please make sure you are adding of the following assemblies. Microsoft.TeamFoundation.dll Microsoft.TeamFoundation.Build.Client.dll Microsoft.TeamFoundation.Build.Common.dll Microsoft.TeamFoundation.dll which will be available under … Continue reading

Posted in .Net, .Net 4.0 | Tagged , , , , , | 2 Comments

Webcams in Silverlight 4.0

Microsoft Silverlight 4.0 supports Webcam and microphone access from Web Applications like Flash. This feature enables a number of scenarios, such as capturing and displaying images, uploading profile pictures to social networking applications etc. Here is code part, which will … Continue reading

Posted in .Net, ASP.Net, Silverlight | Tagged , , , , | 1 Comment