C# Corner

Related resources for Singleton
  • Singleton Design Pattern In C# - Part Two (Eager and Lazy Initialization in Singleton)1/11/2018 11:47:34 PM. In this article, we’ll discuss Lazy initialization, the lazy keyword, why to make singleton class a sealed class and what are the differences between singleton and static class.
  • Singleton Design Pattern In C# - Part Three (Static vs Singleton)1/11/2018 5:22:33 PM. In this series of learning singleton patterns, we learned lazy initialization and eager initializations with practical examples. We also learned why it is necessary to make the singleton class sealed
  • Singleton Design Pattern In C# - Part One1/11/2018 1:10:23 AM. I always wanted to write about Singleton design pattern in C#. Though there already are many posts available on Singleton design pattern, I’ll try to cover this topic in the most simplistic and easy t
  • Your Singleton Might Not Be "Single"11/21/2017 9:33:03 AM. Singleton has been a very popular design pattern as it is proven to have some advantages compared to the global variables
  • Singleton Vs Static Classes6/27/2017 3:04:10 AM. Why do you use a Singleton class if a Static class serves the purpose What is the difference between Singleton and Static classes and when do you use each one in your program?
  • Singleton Pattern in C#6/20/2017 5:10:48 AM. Singleton Pattern in C# comes under creation type design pattern. It restricts creation of object of a class to one object.
  • Singleton Design Pattern In C#3/23/2017 11:50:13 AM. In this article, we are going to learn Singleton design pattern in C#.
  • Good And Bad Things About Singleton Design Pattern10/8/2016 1:46:12 PM. This blog is intended to explain the concept of good and bad things about Singleton Design Pattern.
  • Working With Singleton Design Pattern In Real Time Projects9/13/2016 7:10:45 AM. In this article, you will learn, what Singleton is and how to use Singleton pattern in projects.
  • Design Patterns Simplified - Part 2 (Singleton)7/18/2016 5:12:58 AM. This article explains what Singleton Design Patterns is, addresses common questions and finally illustrates the implementation.
  • Implementing The Singleton Design Pattern6/15/2016 12:31:44 AM. In this article, you will learn how to implement the Singleton design pattern.
  • Design Patterns in WinJS #6: Singleton5/29/2016 3:26:30 PM. This article covers the implementation of Singleton Design Pattern. This is part six of the article series.
  • Singleton In OData v4 Using Web API5/16/2016 12:56:22 PM. In this article you will learn about Singleton in OData v4 using Web API.
  • Property Based Singleton Design pattern in C#12/16/2015 12:25:05 PM. In this article you will learn Property Based Singleton Design pattern in C#.
  • Singleton Design Pattern With Thread Safety11/16/2015 5:05:27 AM. In this blog you will learn about Singleton Design Pattern with Thread Safety.
  • Singleton Design Pattern Vs Static Class11/2/2015 12:32:06 AM. In this article, I will demonstrate you what is singleton design pattern and static class.
  • Implementing Singleton Design Patterns6/9/2015 12:37:32 PM. This article describes how a Singleton Design Pattern can be implemented and the difference between a singleton class and static class.
  • C# Singleton Design Pattern Example: Part 24/28/2015 12:52:54 AM. In this article we will see how to make it Thread Safe.
  • C# Singleton Design Pattern: Part 14/25/2015 7:29:03 PM. This article explains the basics of the Singleton Design Pattern.
  • All about Singleton Pattern10/20/2014 2:46:11 AM. This blog describes about singleton pattern.
  • The quest for the Generic Singleton in C#10/18/2014 12:24:02 PM. While it is a bit tricky to implement the Singleton pattern in C#, the steps necessary are well known. There has however been debate about a generic solution for this. This paper provides 3 possible solutions for the generic singleton, and makes a brief comparison.
  • Difference between Singleton Class and Static Class10/10/2014 1:12:02 AM. In this blog you will learn difference between Singleton class and Static Class.
  • Instance Management in WCF Part # 39/18/2014 5:51:35 AM. This article is part # 3 of Instance Management in WCF. This article will explain about Singleton Service Instance mode. This article will give theoretical introduction and explanation of coding sample also. It will also discuss about various disadvantages of Singleton Service Instance mode and its potential place of uses.
  • Design Patterns in C#3/16/2014 12:13:39 PM. This article describes design patterns for software development.
  • Single Thread a Few Points of the Singleton Pattern12/9/2013 2:41:47 AM. Single thread - a few points of the Singleton pattern.
  • Revealing Module Pattern in JavaScript10/18/2013 2:12:18 PM. In this article you will leanr about revealing Module Pattern in JavaScript.
  • Design Patterns in .Net10/1/2013 2:43:47 PM. Design patterns provide general solutions or flexible way to solve common design problems. This article provides a simple introduction regarding learning and understanding design patterns.
  • Design Pattern For Beginner: Part 5: Composite Design Pattern8/22/2013 1:02:27 PM. In this article we will be learning how to implement composite design pattern in application.
  • Singleton Pattern8/16/2013 6:50:49 AM. The singleton pattern is a design pattern that restricts the Instantiation of a class to one object.
  • Real Example of Singleton Design Pattern8/10/2013 11:38:44 PM. This article attempts to explain the Singleton Design Pattern. I am not going to provide any formal definition of it, I will just share what I understand about it. Let's consider a real-world example to understand it better.
  • Design Pattern For Beginners - Part-1:  Singleton Design Pattern8/2/2013 10:39:37 AM. Today let’s start with very common and easy design pattern called Singleton design pattern.
  • Singleton Design Pattern in C#7/19/2013 2:58:37 PM. In this article, you will learn the Singleton Design Pattern in C#.
  • Singleton Pattern6/24/2013 3:51:57 AM. Singleton pattern is a design pattern that restricts the instantiation of a class to one object. Singletons are used for centralized management of internal or external resources and they provide a global point of access to themselves.
  • Singleton Pattern in PHP1/14/2013 1:28:10 PM. In this article I explain how to create a singleton pattern in PHP.
  • Singleton Pattern in iPhone12/16/2012 3:04:54 PM. In this article I will explain the Singleton Design Pattern with example.
  • Learn Design Pattern - Bridge Pattern10/9/2012 11:16:56 PM. In this we will explain the Bridge Pattern.
  • Learn Design Pattern - Proxy Pattern10/9/2012 8:13:16 PM. In this article we will explain Proxy Pattern.
  • Introduction to Parametric Singleton Pattern10/4/2012 11:55:17 AM. This article explains about Parametric Singleton Pattern.
  • Creational Patterns - Singleton10/4/2012 9:01:59 AM. This article discusses the implementation of the Singleton Design Pattern.
  • .NET Remoting: The Interface Approach9/30/2012 2:33:35 AM. .NET Remoting provides a powerful and high performance way of working with remote objects. Architecturally, .NET Remote objects are a perfect fit for accessing resources across the network without the overhead posed by SOAP based Web services. .NET Remoting is easier to use than Java's RMI, but definitely more difficult than creating a WebService. In this article, we will create a remote object, and access this object using the Interface.
  • Learn Design Pattern - Builder Pattern9/29/2012 12:16:46 PM. In this article we will talk about the Builder Pattern.
  • Singleton Pattern in C#9/29/2012 6:37:35 AM. In this article we will see how to create a single instance of a class using Singleton Pattern.
  • Learn Design Pattern - Singleton Pattern9/6/2012 2:18:49 PM. In this article we will try to understand what Single Pattern is, what kind of problem it solves and how it should be implemented in ASP.NET.
  • Implementation of Singleton Pattern Class in Java Introduction5/30/2012 1:25:17 AM. In this article we are going to describe an important concept; that is, the singleton pattern class.
  • Singleton Pattern5/15/2012 2:38:55 PM. In this article we will implement Singleton pattern to maintain global variables in Winform application.
  • Singleton Pattern Unleashed in C#5/15/2012 2:34:47 PM.
  • Singleton Pattern - Creational Pattern5/15/2012 2:12:39 PM. This is a part of the Creation Pattern. This pattern ensures that you have only one instance and provides a single point of contact to access the instance.
  • Singleton Design Pattern5/15/2012 1:49:37 PM. A design pattern is a general repeatable solution to a common problem that occurs in the software industry. A design pattern is not completely a form of code, but it is a template for how to solve the problem and also can be used in many other problems.
  • Remote Sensing and Remote Control over the Internet with GP-3 Board 5/13/2012 5:47:11 AM. In this article we will revisit the GP-3 board (which we have employed in a few other hardware projects on C# Corner) and use the GP-3 to measure temperature in a remote location.
  • Remote Sensing and Remote Control over the Internet with GP-3 Board 5/13/2012 5:47:11 AM. In this article we will revisit the GP-3 board (which we have employed in a few other hardware projects on C# Corner) and use the GP-3 to measure temperature in a remote location.
  • Singleton Design Pattern5/13/2012 5:05:47 AM. This article talks about Singleton design pattern.
  • Singleton and Prototype Patterns5/13/2012 3:49:24 AM. Singleton and Prototype patterns fall under Creational Design Patterns which deal with object creation.
  • Design Patterns: Strategy Pattern2/9/2012 11:34:10 PM. I was using other design patterns like observer, singleton, memento for some time. I never thought, at least it was never highlighted to me, the use of the Strategy pattern!! Until today!!
  • Singleton in C#12/12/2011 5:18:24 AM. Implementing Singleton in C#
  • Singleton Pattern11/18/2011 12:38:35 AM. Most of you will have heard of this pattern. It is the simplest and a popular pattern among the 23 design patterns.
  • Creating Lazy - Singleton Class9/27/2011 6:14:05 PM. In this blog we will see how to create a Singleton Class using the Lazy<T> in C#.
  • singleton12/19/2010 12:42:05 AM. Implementation of singleton
  • Singleton Objects with SOAP using VB.NET10/1/2010 6:20:16 AM. In this article I will explain you about Singleton Objects with SOAP using VB.NET.
  • Singleton Objects using VB.NET10/1/2010 1:15:57 AM. In this article I will explain you about Singleton Objects using VB.NET.
  • Singleton Design Pattern in C#8/26/2010 12:31:03 AM. Design Patterns provide solutions to common recurring problems. Design patterns can be classified as creational, structural or behavioral .Singleton and Factory patterns are two of the creational pattern.Here we will discuss these two patterns.
  • Example of Singleton Design pattern7/26/2010 1:07:57 AM. Example of Singleton Design pattern
  • Singleton Objects, C# 4/8/2010 11:59:58 PM. In this article I will explain you about Singleton Objects using C#.
  • Singleton Design Patterns in C#6/9/2009 5:34:42 AM. Whenever we want that a class has only one instance and it should have global point to access it but allowing the flexibility to create more objects if the situation changes,in that case we will use Singleton Design Pattern.
  • Singleton Design Patterns in C#6/9/2009 5:34:42 AM. Whenever we want that a class has only one instance and it should have global point to access it but allowing the flexibility to create more objects if the situation changes,in that case we will use Singleton Design Pattern.
  • C# Heap(ing) Vs Stack(ing) in .NET: Part IV1/23/2008 2:27:22 PM. Having a basic understanding of how memory management works will help explain the behavior of the variables we work with in every program we write. In this article we’ll look further into Garbage Collection (GC) and some ways to keep our applications running efficiently by using static class members.
  • C# Heap(ing) Vs Stack(ing) in .NET: Part IV1/23/2008 2:27:22 PM. Having a basic understanding of how memory management works will help explain the behavior of the variables we work with in every program we write. In this article we’ll look further into Garbage Collection (GC) and some ways to keep our applications running efficiently by using static class members.
  • .NET Remoting in a simple way 8/16/2007 4:21:28 AM. This article tells us what is remoting and how we can access remote object from one application to another application.
  • .NET Remoting in a simple way 8/16/2007 4:21:28 AM. This article tells us what is remoting and how we can access remote object from one application to another application.
  • .NET Remoting in a simple way 8/16/2007 4:21:28 AM. This article tells us what is remoting and how we can access remote object from one application to another application.
  • Implementing Design Patterns in C# - Singleton Pattern7/24/2007 11:28:58 AM. There are times, when one need to have a class which can be only instantiated once. Singleton Design Pattern addresses to such situation by providing a design for such classes (known as Singleton class).
  • Singleton Pattern2/6/2007 11:42:20 PM. The singleton design pattern is designed to restrict instantiation of a class to one (or a few) objects. This article talks about building .NET applications using singleton pattern.
  • Singleton Pattern7/12/2006 5:31:13 AM. The singleton design pattern is designed to restrict instantiation of a class to one (or a few) objects. This article talks about building .NET applications using singleton pattern.
  • Creational Patterns - Singleton using VB.NET4/21/2006 5:30:52 AM. This article discusses the implementation of the Singleton Design Pattern.Most programming involves usage of Design Patterns in one form or other .There are around 23 Design Patterns that are available.
  • Creational Patterns - Singleton using VB.NET4/21/2006 5:30:52 AM. This article discusses the implementation of the Singleton Design Pattern.Most programming involves usage of Design Patterns in one form or other .There are around 23 Design Patterns that are available.
  • Alternatives of ATL Singleton3/8/2006 2:11:24 AM. This article describes about thje ATL Singleton.The creation of ATL Singleton and the alternatives of ATL Singleton.
  • A Generic Timed Dialog Box class shower like in ICQ2000 startup...2/27/2006 5:02:11 AM. This article explains about the Dialog box by using the singleton class and adding objects.
  • Creational Patterns - Singleton2/1/2006 1:22:02 AM. This article discusses the implementation of the Singleton Design Pattern.
  • Design Patterns in C#2/1/2006 12:33:33 AM. To define design patterns in simple words they are "popular solutions for common design problems". They are very helpful in designing architecture and they also increase ease of communication among the developers.
  • Handling the Queuing of Messages in a Multithreaded Program1/27/2006 5:52:54 AM. In the financial world you have to deal with messages being spewed at you in large quantities at a rapid rate. For example stock quotes, market data, and orders come flying at you through some sort of wire and you as a programmer have to handle them in a way that doesn’t overwhelm you or the machine.
  • Chat Server and Client in C# Using Remoting Technology1/6/2006 12:20:24 AM. This application is a simple Chat server and Client, which is conversion of Java RMI chat server and client. The Java client was a Applet and present application client in Windows Forms.
  • Singleton Patterns in C# Revised12/21/2005 6:58:39 AM. I am coming from the Java world, where synchronizing the Singleton creation is common practice.
  • Creational Patterns – Singleton11/28/2005 11:07:02 PM. This article discusses the implementation of the Singleton Design Pattern.