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

ObtainValue() protected method

Queries the context for the target value
protected ObtainValue ( RequestContext context, string target ) : object
context RequestContext
target string The object to get the value from and to be based on to create the element name.
return object
		protected object ObtainValue(RequestContext context, string target)
		{
			string[] pieces;

			object rootInstance = ObtainRootInstance(context, target, out pieces);

			if (rootInstance != null && pieces.Length > 1)
			{
				return QueryPropertyRecursive(rootInstance, pieces, 1);
			}

			return rootInstance;
		}

Same methods

FormHelper::ObtainValue ( string target ) : object