/// <summary> /// Adds or updates a <see cref="IDetachedValueCorrection"/> instance to the concurrent cache. /// </summary> /// <param name="correction"> /// The correction. /// </param> private void AddOrUpdateCache(IDetachedValueCorrection correction) { var att = correction.GetType().GetCustomAttribute <DetachedValueCorrectionAttribute>(false); if (att != null) { this._correctionCache.AddOrUpdate(att.PropertyEditorAlias, correction, (x, y) => correction); } }
/// <summary> /// Adds or updates a <see cref="IDetachedValueCorrection"/> instance to the concurrent cache. /// </summary> /// <param name="correction"> /// The correction. /// </param> private void AddOrUpdateCache(IDetachedValueCorrection correction) { var att = correction.GetType().GetCustomAttribute<DetachedValueCorrectionAttribute>(false); if (att != null) { this._correctionCache.AddOrUpdate(att.PropertyEditorAlias, correction, (x, y) => correction); } }