Table of Contents

Method TryGetList

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

TryGetList(THandle, out IList<string>)

Gets the string list from a MaaStringListBuffer.

public static abstract bool TryGetList(THandle handle, out IList<string> stringList)

Parameters

handle THandle

The MaaStringListBufferHandle.

stringList IList<string>

The list of strings.

Returns

bool

true if an empty list or each element was got successfully from the MaaStringListBuffer; otherwise, false.

TryGetList(out IList<string>, Func<THandle, bool>)

Gets the string list from a function using MaaStringListBuffer.

public static abstract bool TryGetList(out IList<string> stringList, Func<THandle, bool> writeBuffer)

Parameters

stringList IList<string>

The list of strings.

writeBuffer Func<THandle, bool>

The function used to write the string list to the list buffer.

Returns

bool

true if an empty list or each element was got successfully from the MaaStringListBuffer; otherwise, false.