Пример #1
0
            public ViewComponentDescriptorCache(ViewComponentDescriptorCollection collection)
            {
                Version = collection.Version;

                _lookupByShortName = collection.Items.ToLookup(c => c.ShortName, c => c);
                _lookupByFullName = collection.Items.ToLookup(c => c.FullName, c => c);
            }
        public ViewComponentDescriptorCache(ViewComponentDescriptorCollection collection)
        {
            Version = collection.Version;

            _lookupByShortName = collection.Items.ToLookup(c => c.ShortName, c => c);
            _lookupByFullName  = collection.Items.ToLookup(c => c.FullName, c => c);
        }