Beispiel #1
0
		public static void ThrowArgumentExceptionIf(string parameterName, bool condition, ExceptionHelpers.MessageLoader loader, object[] args)
		{
			if (!condition)
			{
				return;
			}
			else
			{
				string exceptionMessage = ExceptionHelpers.GetExceptionMessage(loader(), args);
				throw new ArgumentException(exceptionMessage, parameterName);
			}
		}