Quantcast
Channel: Mattia Baldingers Blog » CodeProject
Browsing all 10 articles
Browse latest View live

SortedSet(T) another collection in .NET 4.0

With SortedSet<T> we have another specialized built in collection in the base class library. For all who now thinks, i don’t need another specialized collection, there are enough, I only need the...

View Article



Singletons in C#, Static Constructor vs Static Initialization

Not a long time ago i posted a article about how to implement a static constructor. As a example I used a singleton to show how the static contstructor works and how it is implemented. The result was...

View Article

What are the Sql Server Management Objects

SQL Server Management Objects (also called SMO) is a .NET library which allows you to access and manage all objects of the Microsoft SQL Server. Such a library also exists for Analysis Services (AMO)...

View Article

Copy a table using SQL Server Management Objects

Create a identical copy of a table in a SQL Server Database with SMO? My first thought was no problem at all. But after some minutes of thinking (and after I came to realize that there is no Copy...

View Article

Image may be NSFW.
Clik here to view.

C# reference types are passed by value!

How many times I read: “In C# reference types are passed by reference, primitive types by value”? The essential point is that reference types has nothing to do with passing by reference! But let us...

View Article


Multithreading: Which lock object should i use?

The lock keyword locks a specified code block so two threads can’t process the same code block at the same time. When one threads exits the locked block, another thread can enter the locked code block....

View Article

Entity Framework Code First and WCF Data Services

Entity Framework combined with WCF Data Services provides you a fast approach to present your data. In combination with Entity Framework Code first it allows you to create simple applications, which...

View Article

Generic approach to access WCF Data Services

WCF Data Services allows to publish your data very fast and easy. If you use Visual Studio to create the client which consumes the services, you just can have to click “add service reference” and you...

View Article


Make your application extensible with Reflection

Sometimes I’m very thankful when a application is extensible. It allows you to customize a application or event extend a application in a easy way. Otherwise, if the code is public, I have to digg...

View Article


Thread local variables with ThreadLocal(T)

.NET 4.0 provides a thread local storage, simply by adding a field of type ThreadLocal<T>. The field will have a different instance for each thread! Have a look at the following sample: public...

View Article
Browsing all 10 articles
Browse latest View live




Latest Images