Tag Archives: xml

Powershell extension method

We are testing our Powershell Module with Pester. Since the data is some sort of graph we need to work with indexers / lists all the time. After a small brainstorm session we decided on an Extension Method approach. Reading … Continue reading

Posted in Development | Tagged , , , | Leave a comment

ASP.NET MVC WebApi and Xml serialization

In our project we use XSD to describe messages over project boundaries. This way we can all develop in our own speed. The XSD describes XML with attributes and elements. ASP.NET MVC WebApi supports this, but not out-of-the-box. Default the … Continue reading

Posted in Development | Tagged , , , , , | Leave a comment

XML data type for storing messages

We want to store xml message in a database for batch processing, logging and retention. For some time now Sql Server offers the xml data type for columns. This way we could index the xml, validate it with an xsd … Continue reading

Posted in Development | Tagged , , , | Leave a comment

Executing Unittests in parallel

My machine has a multi core processor, but my unittests only run one at a time. In Visual Studio 2010 the option to use more than one core and run unittests in parallel is there, but well hidden in the … Continue reading

Posted in Test | Tagged , , , , , , , , , , | Leave a comment

Serialize Nullable<T> or not

When we tried to serialize an object to XML we noticed that Nullable types are special. A class is not serialized when null, but a Nullable type is a struct. See the code blow and notice the highlighted line in … Continue reading

Posted in Development | Tagged , , , | Leave a comment

<clear></clear> is not the same as <clear/>

In the dotNET configuration files you can add items to a collection like appSettings with Because this is XML you can also use the following line to add an item: But not the same for clearing the list. Try adding … Continue reading

Posted in Development | Tagged , , , , , | Leave a comment