A cacher class for the class properties (as fields). It provides a 2nd-layer caching for the library when it comes to the class properties extraction (as fields).
Internally, this class is widely used within the library.
Below is the list of methods.
|Flush||Allows you to flush the caches.|
|Get||Returns the list of Field objects.|
You can simply call the
Get() method of this class by passing the class type.
var fields = FieldCache.Get(typeof(Person)); // Use the 'fields' here
Or, via generic type.
var fields = FieldCache.Get<Person>(); // Use the 'fields' here
Internally, it uses the PropertyCache class to extract the list of ClassProperty and convert and cache it all as an