Example #1
0
            internal ResourceEnumerator(AResourceManager <TInfo, TResource> manager)
            {
                lock (manager._lockObject)
                {
                    _resources = new KeyValuePair <TInfo, TResource> [manager._resources.Count];
                    _index     = 0;
                    foreach (KeyValuePair <TInfo, Resource> pair in manager._resources)
                    {
                        _resources[_index++] = new KeyValuePair <TInfo, TResource>(pair.Key, pair.Value.Value);
                    }
                }

                _index = -1;

                Current = default;
            }
Example #2
0
 internal ResourceEnumerable(AResourceManager <TInfo, TResource> manager)
 {
     _manager = manager;
 }