using System; namespace Ryujinx.Tests.Unicorn { public class IndexedProperty { private Func _getFunc; private Action _setAction; public IndexedProperty(Func getFunc, Action setAction) { _getFunc = getFunc; _setAction = setAction; } public TValue this[TIndex index] { get { return _getFunc(index); } set { _setAction(index, value); } } } }