CK.Core.SimpleServiceContainer.Clear C# (CSharp) Method

Clear() public method

Unregisters all the services. Any "on remove" actions are executed.
public Clear ( ) : ISimpleServiceContainer
return ISimpleServiceContainer
        public ISimpleServiceContainer Clear()
        {
            Type[] entries = new Type[ _services.Count ];
            _services.Keys.CopyTo( entries, 0 );

            for (int i = 0 ; i < entries.Count() ; i++)
            {
                Remove( entries[i] );
            }

            return this;
        }