コード例 #1
0
        public ReadOnlyPicnicCache(Func <TValue, TKey> keyProperty, IReadOnlyCacheable <TKey, TValue> readOnlyCacheable)
            : this(readOnlyCacheable)
        {
            ValidateParameterIsNotNull(keyProperty, nameof(keyProperty));

            _keyProperty = keyProperty;
        }
コード例 #2
0
 public ReadOnlyPicnicCache(string keyPropertyName, IReadOnlyCacheable <TKey, TValue> readOnlyCacheable)
     : this(readOnlyCacheable)
 {
     SetKeyProperty(keyPropertyName);
 }
コード例 #3
0
 protected ReadOnlyPicnicCache(IReadOnlyCacheable <TKey, TValue> readOnlyCacheable)
 {
     ValidateParameterIsNotNull(readOnlyCacheable, nameof(readOnlyCacheable));
     ReadOnlyCacheable = readOnlyCacheable;
 }