using System; namespace Ryujinx.Tests.Unicorn { public class IndexedProperty { readonly Action SetAction; readonly Func GetFunc; public IndexedProperty(Func getFunc, Action setAction) { this.GetFunc = getFunc; this.SetAction = setAction; } public TValue this[TIndex i] { get { return GetFunc(i); } set { SetAction(i, value); } } } }