Decorator – helpful design pattern
Some time ago I found a design problem that the Decorator pattern helped me to resolve. Since that time I have used it a...
Mocking the file system
Last time I described how I started to test PowerShell scripts written in C#. Usually, the scripts interact with the system, so in order...
Testing PowerShell cmdlets written in C#
Recently I was rewriting an old console tool written in c#. The tricky part was that I had to implement this tool as a...
XmlSerializer vs. DataContractSerializer – why the latter is better?
I like the idea that one should write C# code as much functional as possible. Sometimes it's difficult, sometimes even impossible, but on the...
Issues with Xsd.exe
Recently I've been assigned to the feature related to XSD files generation. I thought the task easy and immediately started an investigation. Quickly it...
Oracle: returning into in C#
I'd like to describe another not-so-obvious Oracle-C# interaction mechanism. It's returning values from Oracle procedures stored in C# code using SQL returning...
ToDictionary() or not ToDictionary()?
I have a small break in coding. I'm enjoying a recently written LINQ projecting list to another list :) The first list...
Oracle: IN clause from C# perspective
A few days ago my colleague asked me if I know how to remove IN clause from Oracle query. Using this clause...
Passing UDTs from C# using Oracle.ManagedDataAccess
For few last days I've been working more than usual with Oracle database. When we were starting our project about a year...
Meandry C#: dziwne enumy
Jakiś czas temu kolega pracujący po sąsiedzku podszedł do mnie z informacją, że natknął się na ciekawe zachowanie C#. Chodziło o...