aboutsummaryrefslogblamecommitdiff
path: root/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/TRef.cs
blob: 53746e74588ea92d58595720d2e7f038f3c10ba3 (plain) (tree)

















                                                                                                                 
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;
        }
    }
}