コード例 #1
0
ファイル: ValidatingCache.cs プロジェクト: eraj2587/NSB7
 public TValueType Validated(TValueType value)
 {
     if (CacheDictionary.ContainsValue(value))
     {
         return(value);
     }
     throw new InvalidCacheItemException(string.Format(" cache {0}. Value {1} was not found in ", CacheName, value.ToString()));
 }