Castle.MonoRail.Framework.Views.Aspx.BindingContext.ResolveActionArgument C# (CSharp) Method

ResolveActionArgument() private method

Resolves the action argument.
private ResolveActionArgument ( ActionArgument actionArg ) : object
actionArg ActionArgument The action arg.
return object
		private object ResolveActionArgument(ActionArgument actionArg)
		{
			object value = actionArg.Value;

			if (value == null || value is string)
			{
				string expression = value as string;

				if (expression == null)
					expression = actionArg.Expression;

				value = evaluator.Evaluate(expression, this);
			}

			return value;
		}