internal Enumerator(BaseGameComponentCollection collection) { _collection = collection; using (_collection._enumeratorLock.NewWriteLock()) { ++_collection._activeEnumeratorCount; } }
public BaseGameComponentContainer([NotNull] BaseGame game, [NotNull] IBaseGameComponentContainer parent) : base(game, parent) { Components = new BaseGameComponentCollection(this); }