TRef.cs 516 B

12345678910111213141516171819
  1. namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard
  2. {
  3. /// <summary>
  4. /// Wraps a type in a class so it gets stored in the GC managed heap. This is used as communication mechanism
  5. /// between classed that need to be disposed and, thus, can't share their references.
  6. /// </summary>
  7. /// <typeparam name="T">The internal type.</typeparam>
  8. class TRef<T>
  9. {
  10. public T Value;
  11. public TRef() { }
  12. public TRef(T value)
  13. {
  14. Value = value;
  15. }
  16. }
  17. }