1
0
Files
BallanceTasToolbox/BallanceTasEditor/BallanceTasEditor/NullableExtension.cs

16 lines
475 B
C#
Raw Normal View History

2026-03-11 13:56:49 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
2026-04-02 20:35:30 +08:00
namespace BallanceTasEditor {
2026-03-11 13:56:49 +08:00
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;
}
}
}