YAMP.ObjectValue.Perform C# (CSharp) Method

Perform() public method

The method used by YAMP to get a value from an object.
public Perform ( ParseContext context, Value argument ) : Value
context ParseContext The context where this is happening.
argument Value The key of the value to retrieve.
return Value
        public Value Perform(ParseContext context, Value argument)
        {
            var key = argument as StringValue;

            if (key == null)
            {
                throw new YAMPArgumentWrongTypeException(argument.Header, "String", String.Empty);
            }

            return GetValue(key);
        }

Same methods

ObjectValue::Perform ( ParseContext context, Value argument, Value value ) : Value