Measure execution time in C#

0 Comments

To measure execution time in C#, substract start and end datetime. public void MeasureTime() { // Capture start time DateTime startDateTime = DateTime.Now; // Do something for 1000ms... Thread.Sleep(1000); // Capture end time DateTime endDateTime

Belastingdienst is de duivel, ze zeggen het zelf

0 Comments

Als je naar http://www.belastingdienst.nl/ gaat, en je kijkt links onderin naar het logo van de belastingdienst, dan staan de letters B,e,a,s, en t schuin, maar de l niet, dus eigenlijk staat er: Belastingdienst. Het is

Google wave – nice error message on contact search

0 Comments

Wave rules, but I can’t find the meaning of the message: yyyy@googlewave.com  could not be found. Would you like to add it to your contacts? If the contact is not found, how can it be

CSS differences in IE6 – IE7 – IE8

0 Comments

A must read article for all CSS designers: This article will attempt to provide an exhaustive, easy-to-use reference for developers desiring to know the differences in CSS support for IE6, IE7 and IE8 http://www.smashingmagazine.com/2009/10/14/css-differences-in-internet-explorer-6-7-and-8/

C# – Property snippet

0 Comments

Some C# code snippets for C# properties: /// <summary> /// A object property with null check /// </summary> private Type _propertyName = null; public Type PropertyName { get { if(_propertyName == null) { throw new

Leadtools engine initialization error, or there is no appropriate license

0 Comments

If you get the error: Leadtools.Forms.Ocr.OcrException : Engine initialization error, or there is no appropriate license. at Leadtools.Forms.Ocr.Plus.OcrEngine.StartupEngine(String startupParameters) at Leadtools.Forms.Ocr.Plus.OcrEngine.Startup(RasterCodecs rasterCodecs, String workDirectory, String startupParameters) make sure the ocr engine is started with the

Leadtools assembly load error, when building on a x64 platform

0 Comments

When you use leadtools in an assemlby and reference this assemlby by another assembly (e.g. a dll uses the Leadtools.Forms.Ocr and an executable references that dll), make sure that both assemlbies reference the Leadtools assembly,

Resolving the System.InvalidOperationException : Could not find default endpoint element that references contract ‘xxx’ in the ServiceModel client configuration section

6 Comments

After renaming a WCF service reference in Microsoft Visual Studio, you can get the error: System.InvalidOperationException : Could not find default endpoint element that references contract ‘ImportServiceReference.IImportService’ in the ServiceModel client configuration section. This might

Using TSQL Like operator in LLBLGen

2 Comments

If you want to query you’re database with LLBLGen, by filtering entities using the TQL Like operator you should use the FieldLikePredicate See LLGLGen v2.6 documentation: http://www.llblgen.com/documentation/2.6/hh_start.htm Specific part: http://www.llblgen.com/documentation/2.6/Using%20the%20generated%20code/Adapter/Filtering%20and%20Sorting/gencode_filteringpredicateclasses_adapter.htm#FieldLikePredicate FieldLikePredicate Description compares the entity