/// <summary> /// Gets the value as a generic object for the specified element. /// </summary> /// <param name="element">The element to get the value from.</param> /// <returns></returns> protected object GetTypedValue( inf.IFunctionParameter element ) { if (element == null) throw new ArgumentNullException("element"); return element.GetTypedValue( DataType, 0 ); }
/// <summary> /// Returns the specified indexed argument as a string value. /// </summary> /// <param name="args">The list of arguments.</param> /// <param name="idx">The argument index requested.</param> /// <returns>A string representing the value of the argument.</returns> public virtual string GetArgumentAsString( inf.IFunctionParameter[] args, int idx ) { if (args == null) throw new ArgumentNullException("args"); return args[ idx ].ToString(); }