To speed things up, we use caching
This is a global cache holding member types
This way we should reflect only once per class/member in the application lifetime (assuming that member types don't change)
Some operations like tweening use this cache
The cache could be cleared manually anytime
This is a global cache holding member types
This way we should reflect only once per class/member in the application lifetime (assuming that member types don't change)
Some operations like tweening use this cache
The cache could be cleared manually anytime
| C# | Visual Basic | Visual C++ |
public class GlobalMemberCache : MemberCache
Public Class GlobalMemberCache _ Inherits MemberCache
public ref class GlobalMemberCache : public MemberCache
| All Members | Methods | Properties | Fields | ||
| Icon | Member | Description |
|---|---|---|
| Clear()()()() |
Clears the cache
(Inherited from Cache<(Of <(<'TKey, TValue>)>)>.) | |
| Count |
Returns the number of cached items
(Inherited from Cache<(Of <(<'TKey, TValue>)>)>.) | |
| DebugMode |
Debug mode
| |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()()() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| Get(Type, String) |
Gets the member wrapper based on type and property
(Inherited from MemberCache.) | |
| Get(TKey) |
Gets the cached value
(Inherited from Cache<(Of <(<'TKey, TValue>)>)>.) | |
| GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType()()()() | Gets the type of the current instance. (Inherited from Object.) | |
| Instance |
Singleton instance
| |
| MemberwiseClone()()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Put(Type, String, MemberWrapper) |
Puts the member wrapper based on type and property
(Inherited from MemberCache.) | |
| Put(TKey, TValue) |
Caches the value
(Inherited from Cache<(Of <(<'TKey, TValue>)>)>.) | |
| ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) |
| Object | |||
| Cache<(Of <(<'Type, Cache<(Of <(<'String, MemberWrapper>)>)>>)>)> | |||
| MemberCache | |||
| GlobalMemberCache | |||