SharpArch.Domain.Reflection.TypePropertyDescriptorCache.GetOrAdd C# (CSharp) Method

GetOrAdd() public method

Get existing property descriptor or create and cache it.
or is .
public GetOrAdd ( Type type, TypePropertyDescriptor>.Func factory ) : TypePropertyDescriptor
type System.Type The type.
factory TypePropertyDescriptor>.Func The factory to create descriptor.
return TypePropertyDescriptor
        public TypePropertyDescriptor GetOrAdd(Type type, Func<Type, TypePropertyDescriptor> factory)
        {
            if (type == null) throw new ArgumentNullException(nameof(type));
            if (factory == null) throw new ArgumentNullException(nameof(factory));

            return this.cache.GetOrAdd(type, factory);
        }
TypePropertyDescriptorCache