BuildYourOwnDAL.SessionLevelCache.RemoveAllInstancesOf C# (CSharp) Method

RemoveAllInstancesOf() public method

public RemoveAllInstancesOf ( Type type ) : void
type System.Type
return void
        public void RemoveAllInstancesOf(Type type)
        {
            if (cache.ContainsKey(type))
            {
                cache.Remove(type);
            }
        }

Usage Example

Ejemplo n.º 1
0
 public void RemoveAllInstancesFromCache <TEntity>()
 {
     sessionLevelCache.RemoveAllInstancesOf(typeof(TEntity));
 }