Method TryGetList
- Namespace
- MaaFramework.Binding.Buffers
- Assembly
- MaaFramework.Binding.Native.dll
TryGetList(nint, out IList<string>)
Gets the string list from a MaaStringListBuffer.
public static bool TryGetList(nint handle, out IList<string> stringList)
Parameters
Returns
- bool
-
true if an empty list or each element was got successfully from the MaaStringListBuffer; otherwise, false.
TryGetList(out IList<string>, Func<nint, bool>)
Gets the string list from a function using MaaStringListBuffer.
public static bool TryGetList(out IList<string> stringList, Func<nint, bool> writeBuffer)
Parameters
stringList
IList<string>-
The list of strings.
writeBuffer
Func<nint, bool>-
The function used to write the string list to the list buffer.