Archive for the Category dotnet

 
 

Implementing the singleton pattern

There are various different ways of implementing the singleton pattern in C#.

The implementation that listed below  is thread-safe, simple, and perform well.

public sealed class Singleton
{
    Singleton()
    {
    }
 
    public static Singleton Instance
    {
        get
        {
            return Nested.instance;
        }
    }
    
    class Nested
    {
        // Explicit static constructor to tell C# compiler
        // not to mark type as beforefieldinit
        static Nested()
        {
        }
        internal static readonly Singleton instance = new Singleton();
    }
}

 

You can read more about different singleton pattern implementations here

Coding4Fun

If you are interested in some "non-business" development such as games and stuff, you should check out http://msdn.microsoft.com/coding4fun/

"Coding4Fun is all about giving something back to the hobbyist developer community…"  Brian Keller, product manager for Visual Studio

VB.Net vs. C#.Net by Philippe Lacoude

The article enumerates the differences between C# .Net 2003 (C#) and Visual Basic .Net 2003 (VB.Net) and the potential ramifications of these differences with regard to cross-language platform support.

MSDN Forums Beta

MSDN Forums Beta allows customers to search a growing archive of technical questions and answers.

Here are the C#-specific groups:

  • Visual C# IDE  Questions and discussions on the C# IDE (including IntelliSense, refactoring, code snippets, colorization, brace matching, smart tags, auto-generated code, etc.)
  • Visual C# Language  Issues regarding the C# language and compiler ( including things like generics, anonymous methods, etc. )
  • Visual C# General  General open C# issues that don’t t fall into any other C# forum category.
  • Visual Studio Debugger  Questions and discussions about debugging applications with the Visual Studio debugger.

http://forums.microsoft.com/msdn

[ Via Josh Ledgard ]

    Computerworld Development Survey gives nod to C#

    C# beat out Java as the preferred programming language in a recent developer survey conducted by Computerworld.

    The highest number of respondents selected .Net as their organization’s preferred framework/API, followed by Unix/Linux and Microsoft Win32/COM/DCOM.

    Read More


    Page 12 of 14« First...1011121314