/// <summary> /// Gets a property bag for the concrete type of the given value. /// </summary> /// <param name="value">The value type to retrieve a property bag for.</param> /// <param name="propertyBag">When this method returns, contains the property bag associated with the specified value, if the bag is found; otherwise, null.</param> /// <typeparam name="TValue"></typeparam> /// <returns><see langword="true"/> if the property bag was found for the specified value; otherwise, <see langword="false"/>.</returns> public static bool TryGetPropertyBagForValue <TValue>(ref TValue value, out IPropertyBag propertyBag) { return(PropertyBagStore.TryGetPropertyBagForValue(ref value, out propertyBag)); }