1
0
Files
BallanceTasToolbox/BallanceTasEditor/BallanceTasEditor/NullableExtension.cs
2026-04-02 20:35:30 +08:00

16 lines
475 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace BallanceTasEditor {
public static class NullableExtensions {
public static T Unwrap<T>(this T? value, [CallerArgumentExpression(nameof(value))] string? paramName = null) where T : class {
ArgumentNullException.ThrowIfNull(value, paramName);
return value;
}
}
}