Working with XML Using C#

Introduction The Extensible Markup Language (XML) is a simple text-based format for representing structured information: documents, data, configuration, books, transactions, invoices, and much more. It is a very common format and In this post, we will learn some of the basic ways to work with XML in C#. Getting Started XDocument and XElement are the … Read more

Generate PDF documents in .NET using PDFsharp

Introduction In this post, we will see how to create PDF documents in .NET using PDFSharp library. PDFsharp is the Open Source .NET library that easily creates and processes PDF documents on the fly from any .NET language. The same drawing routines can be used to create PDF documents, draw on the screen, or send … Read more

Delegates, can’t live with them, can’t live without them.

Introduction There is a famous quote by Jim Henson: “If you can’t beat them. Join them”. It’s possible to write code for years without deliberately using delegates. I say “deliberately” because we may have used them without realizing it. Knowing what these types represent makes reading code easier. Knowing how to use them adds some useful … Read more

Moving Forward with .NET Events, Event-Handlers and CustomEventArgs

Introduction In the previous post on Events, we talked about how we are surrounded by events and how useful they can be when writing loosely coupled code. We saw how we can define events, raise and finally handle events. If you haven’t already then I will suggest to read that post for the background and … Read more

Introduction to .NET Events and Event- Handlers

Introduction Our physical world is surrounded by events e.g. Door Opened, Engine Started, Plane landed etc and we see events in the virtual world as well e.g. email received, friend-request sent, post liked etc. This is a very common concept, many programming languages support this and in this post we will see that how we … Read more

Network Programming – Setting the Scene

In Jonathan swift’s satirical novel, Gulliver’s travels, Gulliver comes across two neighboring islands, Lilliput and Blefuscu. Two factions there at a war, the little-endians (Lilliput) and the big-endians (Blefuscu) and dispute concerns, which end of a boiled egg you should open. Well now a days, it would be nice to think that the world would … Read more

Encoding

“Ah Gravity, Thou Art a Heartless Bitch” Sheldon Cooper – The Big Bang Theory I like how in that Series, Sheldon’s okay with calling gravity that but the similar feeling I had when I was first researching about encoding. It is that little piece of the puzzle which is easier to reason about but often overlooked in programming. During my … Read more