Example #1
0
		public ArgumentChecks()
		{
			_aDelegate = ExceptionBuilder;
			_aParameterInfo = _aMethodInfo.GetParameters()[0];
			_aFunctionBinding = new ReflectionFunctionBinding(_aMethodInfo, null, false);
		}
Example #2
0
        public static ArgumentException FunctionWithSameNameAndSignatureAlreadyInCollection(string paramName, FunctionBinding functionBinding)
        {
            if (paramName == null)
                throw new ArgumentNullException("paramName");

            if (functionBinding == null)
                throw new ArgumentNullException("functionBinding");

            StringBuilder sb = new StringBuilder();
            sb.Append(functionBinding.Name);
            sb.Append("(");
            FormattingHelpers.FormatTypeList(functionBinding.GetParameterTypes());
            sb.Append(")");

            string signature = sb.ToString();
            string message = String.Format(CultureInfo.CurrentCulture, Resources.FunctionWithSameNameAndSignatureAlreadyInCollection, signature);
            return new ArgumentException(message, paramName);
        }
Example #3
0
		public void AcceptFunction(FunctionBinding function)
		{
			AddInvocable(function);
		}
Example #4
0
		public void AcceptFunction(FunctionBinding function)
		{
			if (!_scopeInfo.FunctionNames.ContainsKey(function.Name))
				_scopeInfo.FunctionNames.Add(function.Name, null);
		}