Пример #1
0
        public static void HasNoValue <T>(Optional <T> optional, string message = null, [CallerArgumentExpression("optional")] string name = null)
        {
            if (!optional.HasValue)
            {
                return;
            }

            Throw.ArgumentExceptionForHasNoValue(optional, message, name);
        }