System.ComponentModel.DebugTypeDescriptor.GetEntry C# (CSharp) Method

GetEntry() private static method

private static GetEntry ( object component, Type componentType ) : ComponentEntry
component object
componentType System.Type
return ComponentEntry
        private static ComponentEntry GetEntry(object component, Type componentType) {
            ComponentEntry entry = null;
            
            lock(cachedComponentEntries) {
                entry = (ComponentEntry)cachedComponentEntries[componentType];
                if (entry == null) {
                    entry = new ComponentEntry(componentType);
                    cachedComponentEntries[componentType] = entry;
                }
            }

            return entry;
        }