czwartek, 23 września, 2021

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...
XML Serializers

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...
Podstawy optymalizacji

Podstawy optymalizacji działającej aplikacji

Potrzebowałem porad dotyczących wydajności aplikacji. W związku z tym postanowiłem poradzić się bardziej doświadczonych kolegów i wywołałem dyskusję na Twitterze. Aby usystematyzować otrzymane informacje,...