Ejemplo n.º 1
0
        /// <summary>
        /// Returns instance of the singleton.
        /// </summary>
        /// <returns></returns>
        public static ForceCalculator GetInstance()
        {
            if (_forceCalculator == null)
            {
                _forceCalculator = new ForceCalculator();
            }

            return(_forceCalculator);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Disposes the singleton.
 /// </summary>
 public void Dispose()
 {
     _forceCalculator = null;
 }