Castle.MonoRail.Framework.Helpers.FormHelper.ObtainTargetProperty C# (CSharp) Method

ObtainTargetProperty() protected method

Obtains the target property.
protected ObtainTargetProperty ( RequestContext context, string target, Action action ) : PropertyInfo
context RequestContext The context.
target string The target.
action Action The action.
return System.Reflection.PropertyInfo
		protected PropertyInfo ObtainTargetProperty(RequestContext context, string target, Action<PropertyInfo> action)
		{
			string[] pieces;

			Type root = ObtainRootType(context, target, out pieces);

			if (root != null && pieces.Length > 1)
			{
				return QueryPropertyInfoRecursive(root, pieces, 1, action);
			}

			return null;
		}