2021-11-16【c#】判断泛型T是否为null
2021-11-16 本文已影响0人
持刀的要迟到了
Null or default comparison of generic argument in C# - Stack Overflow
if (myArgument?.Equals( default(T) ) != null )
Null or default comparison of generic argument in C# - Stack Overflow
if (myArgument?.Equals( default(T) ) != null )