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

ArcObjectsC#
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#Tools
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...

ArcObjectsC#Interop
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...

C#F#
4 min

Remote Debugging mit Visual Studio

Das Debuggen einer Applikation auf einem Rechner ohne installiertes Visual Studio gestaltet sich mit dem Remote Debugging Monitor relativ einfach. Derartige...

C#
1 min

MSB3105: Duplicate ressource parameter

error MSB3105: The item "BALoginForm.resources" was specified more than once in the "Resources" parameter. Duplicate items are not supported by the "Resource...

C#
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...

ArcObjectsC#
1 min

Casting Anti-Pattern

in unten stehendem Code ist ein Anti-Pattern, welches immer wieder im ArcObjects-Kontext zu beobachten ist. if (element is IMapSurroundFrame) { IMapSurround...

ArcObjectsC#
1 min

Using images and cursors in resources

Often i see code-constructs like 1: try 2: { 3: string bitmapResourceName = GetType().Name + ".bmp" ; 4: Bitmap bitmap = new Bitmap(GetType(), bitmapResource...

C#Tools
1 min

Konfigurationfile für eine Library lesen

Beim Verwenden des Standard-Mechanismus zum Lesen von Konfigurationsdaten wird immer die config-Datei der EXE gelesen. Soll eine DLL über eine eigene Konfigu...

C#