OriginalParentCache
public static internals.caches.OriginalParentCacheTip
This class cannot be used directly by the end user, save for with reflection. Just because you can access it with reflection, however, doesn’t mean that you should. This is a highly sensitive class that may break your program when misused. This class is documented here only for maintainability purposes.
- properties:
<OriginalParentCache> INSTANCE - The instance used to access the class, since it is a singleton.
Dictionary<string, Control> cache - The cache containing the original parents of every control.
Constructors
private OriginalParentCache()
Method Implementations
internal bool AddToCache(Control control)
- parameters:
<Control> control - The control to add to the cache.
- returns:
<bool> Whether or not the control was successfully added to cache.
internal Control GetParentOf(string name)
- parameters:
<string> name - The name of the control to look for in the cache.
- returns:
<Control> The cached original parent for the specified name.
internal bool Contains(string name)
- parameters:
<string> name - The name of the control to look for in the cache.
- returns:
<bool> Whether the control exists in the cache or not.