mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-11 02:58:57 +02:00
Move solution and projects to src
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
|
||||
namespace Ryujinx.Tests.Unicorn
|
||||
{
|
||||
public class IndexedProperty<TIndex, TValue>
|
||||
{
|
||||
private Func<TIndex, TValue> _getFunc;
|
||||
private Action<TIndex, TValue> _setAction;
|
||||
|
||||
public IndexedProperty(Func<TIndex, TValue> getFunc, Action<TIndex, TValue> setAction)
|
||||
{
|
||||
_getFunc = getFunc;
|
||||
_setAction = setAction;
|
||||
}
|
||||
|
||||
public TValue this[TIndex index]
|
||||
{
|
||||
get
|
||||
{
|
||||
return _getFunc(index);
|
||||
}
|
||||
set
|
||||
{
|
||||
_setAction(index, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user