private static MapValue TruncateParameters(MapValue parameters) { string[] keys = new string[parameters.Size()]; AnyValue[] values = new AnyValue[keys.Length]; int i = 0; foreach (string key in parameters.Keys) { keys[i] = key.Length <= _maxParameterKeyLength ? key : key.Substring(0, _maxParameterKeyLength); values[i] = parameters.Get(key).map(_valueTruncater); i++; } return(VirtualValues.map(keys, values)); }
public override AnyValue MapMap(MapValue map) { return(Values.stringValue("§MAP[" + map.Size() + "]")); }