mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-14 20:26:41 +00:00
20 lines
516 B
C#
20 lines
516 B
C#
|
namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Wraps a type in a class so it gets stored in the GC managed heap. This is used as communication mechanism
|
|||
|
/// between classed that need to be disposed and, thus, can't share their references.
|
|||
|
/// </summary>
|
|||
|
/// <typeparam name="T">The internal type.</typeparam>
|
|||
|
class TRef<T>
|
|||
|
{
|
|||
|
public T Value;
|
|||
|
|
|||
|
public TRef() { }
|
|||
|
|
|||
|
public TRef(T value)
|
|||
|
{
|
|||
|
Value = value;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|