Category Archives: C#

How to add two numbers without the operators +,-,*,/ ?

Recently I found an interview question: How to add two numbers without the operators +,-,*,/. During in an interview, this question is just horrible. From my point of view it doesn’t matter if an interviewee knows the answer or not. … Continue reading

Posted in C#, Development | Tagged , , | 1 Comment

Simplify Singleton Pattern

The Singleton Pattern is well known to avoid multiple instances of a class. Whenever a Singleton is useful or not – some people say that Singletons are the face of evil – the implementation is really straightforward: Jon Skeet, Google … Continue reading

Posted in C#, Development | Tagged , | Leave a comment

Unity Application Block 3.0 QuickStart

The Unity Application Block is a Dependency Injection Container programmed by the Microsoft patterns & practices group. Dependency Injection is a programming pattern to avoid tight coupling of classes and dependencies. A short explanation can be found in one of … Continue reading

Posted in C#, Development | Tagged , , | Leave a comment

Short explanation of DI and IoC

The acronyms DI and IoC stand for Dependency Injection and Inversion of Control. The first one is a development pattern for object orientated programming, whereas the other one is a characteristic of frameworks which are used to do Dependency Injection. … Continue reading

Posted in C#, Development | Tagged , , | 1 Comment

NoSQL: First steps with RavenDB and .NET

RavenDB is categorized as a NoSQL database.NoSQL means, that it is no longer necessary to use a relational schema to save information or data. RavenDB is open source, written in .NET and document orientated, so this means all data is … Continue reading

Posted in C#, Development, NoSQL | Tagged , | 1 Comment

Tip: Free ebook about ASP.NET SignalR

CampusMVP.net currently offers a free ebook about ASP.NET SignalR. After a quick view I recommend it very much for a simple entry into SignalR. The book is based on the version 1.0 Release Candidate 2, which is the latest at … Continue reading

Posted in ASP.NET, C#, Development | Tagged , , | 1 Comment

Environment.MaschineName with Citrix

Normally the property MaschineName of the class Environment contains the NetBIOS name of the pc. If the user runs the application in a Citrix environment, it contains the name of the Citrix server which hosts the current session. In my … Continue reading

Posted in C#, Development | Tagged , | Leave a comment