MeshLib C# Docs
Loading...
Searching...
No Matches
MR.Misc.KeepAliveHolder< T > Class Template Referenceabstract

This is the base classes that keep other classes alive. This is generic to keep static fields separate. More...

+ Inheritance diagram for MR.Misc.KeepAliveHolder< T >:

Public Member Functions

void _KeepAlive (object obj, string key="")
 Keeps obj alive as long as this object exists. If key is specified, it's an optional tag for this object.
 
void _DiscardKeepAlive (string key="")
 Discards the objects kept alive by this object. If key is not empty, only discards the objects with the same key. Otherwise discards all of them. This intentionally doesn't discard _KeepAliveEnclosingObject.
 

Static Public Member Functions

static void _StaticKeepAlive (object obj, string key="")
 
static void _StaticDiscardKeepAlive (string key="")
 

Public Attributes

object? _KeepAliveEnclosingObject = null
 A special holder for the enclosing object when returning a reference to its subobject.
 

Detailed Description

This is the base classes that keep other classes alive. This is generic to keep static fields separate.


The documentation for this class was generated from the following file: