Table of Contents

Method TryIndexOf

Namespace
MaaFramework.Binding.Buffers
Assembly
MaaFramework.Binding.dll

TryIndexOf(T, out ulong)

Attempts to get index of the specified element.

bool TryIndexOf(T item, out ulong index)

Parameters

item T

The element.

index ulong

The zero-based index of the item.

Returns

bool

true if the index is got successfully; otherwise, false.

Exceptions

NotSupportedException

The type of item is not supported.