te
This commit is contained in:
parent
01151e679b
commit
57b2f0400e
265 changed files with 22828 additions and 6 deletions
23
Unused/Decal.Adapter.Wrappers/HookIndexer.cs
Normal file
23
Unused/Decal.Adapter.Wrappers/HookIndexer.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
using System;
|
||||
using System.Globalization;
|
||||
|
||||
namespace Decal.Adapter.Wrappers;
|
||||
|
||||
/// <summary>
|
||||
/// Support class for HooksWrapper
|
||||
/// This class
|
||||
/// </summary>
|
||||
public sealed class HookIndexer<IndexType> : MarshalByRefObject where IndexType : struct, IConvertible
|
||||
{
|
||||
private hookIndexType myIndex;
|
||||
|
||||
private IIndexedValueProvider myWrap;
|
||||
|
||||
public int this[IndexType item] => myWrap.GetIndexedObject(myIndex, item.ToInt32(CultureInfo.InvariantCulture));
|
||||
|
||||
internal HookIndexer(IIndexedValueProvider wrap, hookIndexType index)
|
||||
{
|
||||
myIndex = index;
|
||||
myWrap = wrap;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue