Geeks With Blogs

Michael Freidgeim's Blog MS .Net Development
I wanted to verify, are DataTables in DataSets the same. I found a few similar implementations on StackOverflow, but the one that I've selected (http://stackoverflow.com/q... didn't work and returned unexpectedly false, when comparing two cells with the same values tbl1.Rows[i][c] 2 object ......

When writing Integration Tests for WCF Services, you have 2 options to access SUT(system under test)1. Inproc – Test Classes are calling methods from application DLLs directly.2. External – Tests are calling external services using client proxy with specified URL.If you own the code of the service, the Inproc method is preferred as it is allow to test ......

Our team need to choose a JS framework. Base on the research Angular is the preferred framework. The only essential concern - if you need to support old IE6/7 browsers(but also there are articles how to support/workaround the IE issues)From http://www.quora.com/JavaSc... supports almost all ......

After some merge of source code branches I've got a build error POSTSHARP : error PS0052: The plug-in "PostSharp.Patterns.Diagnos... required by the type "PostSharp.Patterns.Diagnos... was not found. [C:\Builds\\MAIN_Master\Sou... wasn't able to find immediately which code caused the error, ......

The following C# line to call AutoFixture methodfixture.Create<Lis... Error 63 'System.Collections.Generic... is a 'type' but is used like a 'variable' It wasn't obvious, that closing '>' was missing. I believe that compiler can recognize ......

Recently I've setup Visual Studio on new machine and I wanted to install a few tools, that I am using all the time.It includes Resharper, GhostDoc(aka ctrl-shift-d) http://visualstudiogallery.... - alternative to VS 2012 pending window ( http://stackoverflow.com/qu... ......

After creating new build type 32bitDebug (based on Debug) according to How to: Create and Edit Configurations I received the following error during compileError 409 WebServiceBindingAttribute is required on proxy classes. C:\TFS\myProject\SGEN MyAssemblyNameThe instructions from SO answer http://stackoverflow.com/qu... ......

Some time ago I have discussion with my co-worker how to organize test projects. Should we have a single test project that does all sorts of things and references every project?It is good to have one integration test dll, but for unit tests, what is the point merging everything into one.In ideal world I agree that small independent projects are better. ......

I've posted below a few Office customization tips, that I prefer to setup when using a new computer.Display File Path in Excelfrom http://excelexperts.com/Exc... to display the file path of the current open file (Excel 2007):Right click on the ribbonChoose "Customise quick access toolbar"Select "All commands"Then choose ......

I've receive quite generic error Message : Type 'MyclassType' with data contract name 'MyclassType:http://schemas... is not expected. Consider using a DataContractResolver or add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list ......

We have a REST service with attributes [WebGet(UriTemplate ="...", BodyStyle =WebMessageBodyStyle.Bare, ResponseFormat =WebMessageFormat.Xml)]Norm... it worked fine. But for particular data it has a huge response that was truncated. The size returned in a few attempts in IE browser was 2196456, in Chrome slightly different 2195397.After a search in ......

I was upgrading our solutions from PostSharp 2 to PostSharp 3. The small solution based on cache attribute from http://cache.codeplex.com/ was upgraded without any problems.Upgrading my main solution by installing nuget package PostSharp also was quite well. The only annoying thing was that installer added RequiresPostsharp.cs file to all projects, ......

I want to post a few recently created collection extensions to write in one line, what otherwise takes 2 or more public static void AddIfNotNull( this IList coll, T newItem) where T : class { if (newItem != null) { coll.Add(newItem); } } public static void AddRangeIfNotNullOrEmpty( this List coll, IEnumerable newItems) where T : class { if (!newItems.IsNullOrEmptySeq... ......

When creating a new data class, it’s a good idea to override ToString() method to output most of the data.It will help to see details in logs.The only exception if the class has a sensitive data like CreditCard number or password.For DataContract classes just usepublic override string ToString() { //Use JSON as the simplest serializer string sRet = ......

For a long time I believed that PDB as a part of debugging information should not be included in production deployment. Recently my colleague suggested to copy them to simplify exception investigations. The following SO discussion convinced us that it is a good idea ( at least for web sites). http://stackoverflow.com/qu... ......

Copyright © Michael Freidgeim | Powered by: GeeksWithBlogs.net | Join free