A game about forced loneliness, made by TACStudios
1using System; 2using JetBrains.Annotations; 3 4namespace Unity.VisualScripting 5{ 6 public partial class EnsureThat 7 { 8 public void IsNull<T>([NoEnumeration] T value) 9 { 10 if (!Ensure.IsActive) 11 { 12 return; 13 } 14 15 if (value != null) 16 { 17 throw new ArgumentNullException(paramName, ExceptionMessages.Common_IsNull_Failed); 18 } 19 } 20 21 public void IsNotNull<T>([NoEnumeration] T value) 22 { 23 if (!Ensure.IsActive) 24 { 25 return; 26 } 27 28 if (value == null) 29 { 30 throw new ArgumentNullException(paramName, ExceptionMessages.Common_IsNotNull_Failed); 31 } 32 } 33 } 34}