SingletonBase

Description

abstract class Tinman.Core.System.SingletonBase

Extended by

Singleton abstract

Abstract base class for singleton wrappers.

Public / Methods

Clear


public abstract method Clear → ()

Clears the singleton value to null.

This method is called automatically during shutdown and should not be called directly.

Protected / Constructors

Singleton­Base


protected constructor SingletonBase → ()

Creates a new instance of SingletonBase.

Protected / Attributes

Order


protected virtual attribute Order → (get)

value : int32

The shutdown order number. Singleton objects with smaller order numbers are cleared first.

The order number of this singleton which determines the order in which singletons are cleared during shutdown.

The default implementation returns 0, which is the default for Singleton objects. The following methods return singleton objects: