ModelExtensionsCheckSizeT Method

Definition

Namespace: Centralpoint.Web.Models
Assembly: Centralpoint.Web (in Centralpoint.Web.dll) Version: 1.0.0.0 (1.0.0.0)
C#
private static void CheckSize<T>(
	this Cache cache,
	string key,
	ConcurrentBag<T> models,
	int size
)
where T : ModelCache

Parameters

cache  Cache
 
key  String
 
models  ConcurrentBagT
 
size  Int32
 

Type Parameters

T

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Cache. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also