Link Search Menu Expand Document

PropertyCache


A widely-used cacher class for ClassProperty objects. It provides a second caching layer for class property extraction.

Internally, this class is widely used within the library.

Methods

Below are the methods available from this class.

FlushAllows you to flush the caches.
GetReturns the list of ClassProperty objects.

Usability

Call the Get() method by passing the class type:

var properties = PropertyCache.Get(typeof(Person));
// Use the 'properties' here

Or via generic type:

var properties = PropertyCache.Get<Person>();
// Use the 'properties' here

Internally, it uses PropertyMapper and ClassExpression to extract and cache ClassProperty objects.