• Skip to primary navigation
  • Skip to main content

Josh Withee

  • Home
  • Blog
  • Contact
  • Show Search
Hide Search

Singleton

Singleton Pattern Implementations

Josh Withee · September 10, 2020 · Leave a Comment

A brief reference on ways to implement the singleton pattern. Static Class Use a static class for your singleton only in the most basic of applications. Here is an example of using a static class for a threadsafe collection of objects that you want to access from anywhere in your …

[Read more...] about Singleton Pattern Implementations

Copyright © 2023