MassTransit.Util.TypeMetadataCache.GetOrAdd C# (CSharp) Method

GetOrAdd() static private method

static private GetOrAdd ( Type type ) : CachedType
type System.Type
return CachedType
        static CachedType GetOrAdd(Type type)
        {
            return Cached.Instance.GetOrAdd(type, _ =>
                (CachedType)Activator.CreateInstance(typeof(CachedType<>).MakeGenericType(type)));
        }