Tags » .NET 4.0

C# Settings reminder

As a reminder to self: Settings are nice (too bad they advertise them as Windows Forms Application Settings, as they are just as useful for other assemblies), but be aware… 55 more words


Raise specific exceptions like InvalidOperationException, not generic ones like ApplicationException.

Code Analysis in Visual Studio objects against using very generic exception types:

CA2201 Do not raise reserved exception types

‘BusinessClass<T>.StopProcessing()’ creates an exception of type ‘ApplicationException’, an exception type that is not sufficiently specific and should never be raised by user code.

67 more words

The curse of "ORA-12560: TNS:protocol adapter error"

Today it is about the curse of

ORA-12560: TNS:protocol adapter error

Don’t you love the overly generic error messages you often get, especially from Oracle.

151 more words

Convert List/Enumerable of Enums to CSV - via Stack Overflow

I like simple solutions, thanks vcsjones for answering this:

Perhaps this:

var str = String.Join(", ", SupportedNotificationMethods.Select(s => s.ToString()));

You can read more about the…

39 more words

Windows Communication Foundation (WCF) : An Intro

Windows Communication Foundation (WCF) is a part of .NET framework and is stacked with every version of .NET (since 3.0). The WCF consists of a set of  API’s that allow .NET to provide capability of building… 367 more words


The unknown beauty of shared projects in .NETGeert van Horrik


Shared Projects

Shared Projects are a new feature of Visual Studio 2013 Update 2. It was initially created to support universal apps apps for both Windows Phone RT and Windows RT, and that’s what most people know about it.

113 more words