CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of Singleton
C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Threading;
 
namespace Westwind.Utilities
{
    /// <summary>
by Rick Strahl   October 09, 2011 @ 8:57pm
307 Views
no comments
 
C#
//Static classes
  var con = typeof(System.Console).Extend();
  con.WriteLine=new Action<string>(s=>System.Console.WriteLine("hello " + s));
  con.WriteLine("hello world");
 
by amazedsaint   October 21, 2010 @ 5:38am
256 Views
no comments
 
C#
public class SomeController
{
  private static SomeController instance;
  public SomeController(){}
 
  /// <summary>
  /// Gets the instance.
  /// </summary>
  /// <returns></returns>
  public static SomeController GetInstance()
by Mike Minutillo   September 16, 2009 @ 8:12pm
177 Views
1 comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate