private static ArgumentOutOfRangeException GetArgumentOutOfRangeException( ExceptionArgument argument, int paramNumber, ExceptionResource resource) { return(new ArgumentOutOfRangeException(ThrowHelper.GetArgumentName(argument) + "[" + paramNumber.ToString() + "]", ThrowHelper.GetResourceString(resource))); }
internal static void ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) { if (CompatibilitySwitches.IsAppEarlierThanWindowsPhone8) { throw new ArgumentOutOfRangeException(ThrowHelper.GetArgumentName(argument), string.Empty); } throw new ArgumentOutOfRangeException(ThrowHelper.GetArgumentName(argument), Environment.GetResourceString(ThrowHelper.GetResourceName(resource))); }
internal static void ThrowArgumentOutOfRangeException(ExceptionArgument argument) { throw new ArgumentOutOfRangeException(ThrowHelper.GetArgumentName(argument)); }
internal static void ThrowArgumentException(ExceptionResource resource, ExceptionArgument argument) { throw new ArgumentException(Environment.GetResourceString(ThrowHelper.GetResourceName(resource)), ThrowHelper.GetArgumentName(argument)); }
internal static void ThrowArgumentNullException( ExceptionArgument argument, ExceptionResource resource) { throw new ArgumentNullException(ThrowHelper.GetArgumentName(argument), ThrowHelper.GetResourceString(resource)); }
private static ArgumentNullException GetArgumentNullException( ExceptionArgument argument) { return(new ArgumentNullException(ThrowHelper.GetArgumentName(argument))); }
private static ArgumentException GetArgumentException( ExceptionResource resource, ExceptionArgument argument) { return(new ArgumentException(ThrowHelper.GetResourceString(resource), ThrowHelper.GetArgumentName(argument))); }