PropertyCache

A class that is being used to retrieve the cached properties of the class or data entity.

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.

Flush Allows you to flush the caches.
Get Returns 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.