using System; using JetBrains.Annotations; namespace Unity.VisualScripting { public partial class EnsureThat { public void IsNull([NoEnumeration] T value) { if (!Ensure.IsActive) { return; } if (value != null) { throw new ArgumentNullException(paramName, ExceptionMessages.Common_IsNull_Failed); } } public void IsNotNull([NoEnumeration] T value) { if (!Ensure.IsActive) { return; } if (value == null) { throw new ArgumentNullException(paramName, ExceptionMessages.Common_IsNotNull_Failed); } } } }