/// <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);
                }
            }
Пример #2
0
 /// <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);
     }
 }