mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-24 13:41:49 +01:00
Make AtkValuePtr.TryGet out non-nullable struct
This commit is contained in:
parent
5da79a7dba
commit
d776498360
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ public readonly unsafe struct AtkValuePtr(nint address) : IEquatable<AtkValuePtr
|
|||
/// <returns>
|
||||
/// <c>true</c> if the value was successfully extracted and matched <typeparamref name="T"/>; otherwise, <c>false</c>.
|
||||
/// </returns>
|
||||
public unsafe bool TryGet<T>([NotNullWhen(true)] out T? result) where T : struct
|
||||
public unsafe bool TryGet<T>(out T result) where T : struct
|
||||
{
|
||||
var value = this.GetValue();
|
||||
if (value is T typed)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue