Example #1
0
        /// <summary>
        /// Activates a <see cref="IInitializable"/>
        /// </summary>
        /// <param name="obj"></param>
        public static void Activate(IInitializable obj)
        {
            if (!obj.IsInitialized)
            {
                obj.Initialization();
                obj.IsInitialized = true;
            }

            obj.Activate();
        }