4 min

LINQ and ArcObjects

Motivation LINQ (language integrated query) is a component of the Microsoft. NET Framework since version 3.5. It allows a SQL-like query to various data sour...

ArcObjects
1 min

xUnit runner eats system diagnostic output

Problem When using xUnit and constructs like Debug.WriteLine the DbgView-tool does not show the written output anymore. Solution Add a new Listener – for exa...

C#
2 min

"Failure has occurred while loading a type."

Motivation During programming suddenly this error (“Failure has occurred while loading a type”) was thrown by accessing a artifact of a referenced library. I...

ArcObjects
1 min

Wie spricht man den Lambda-Operator aus?

Da gibt es unterschiedliche Auffassungen. Im Englischen: Func f = x => x * 2; ”x goes to x * 2” ”x maps to x * 2” ”x becomes x * 2” ”x induces x * 2” Func te...

F#
1 min

Nachtrag: Casting Anti-Pattern

Wie so oft im Leben sind manche Dinge auf den zweiten Blick komplexer als sie auf dem Ersten den Anschein haben. Es kam die Anfrage, ob es nicht doch einen U...

ArcObjects
1 min

Casting Anti-Pattern

Warum die Kombination aus is-Prüfung und anschließendem Cast in ArcObjects unnötig ist und wie sich Next()-Schleifen kompakter formulieren lassen

ArcObjects
1 min

Using images and cursors in resources

Use strongly typed image and cursor resources in .NET applications to catch missing or renamed resources earlier and avoid fragile runtime lookups.

C#