/// <summary>
 /// It returns the leaf field number of a message hierarchy.
 /// </summary>
 /// <returns>
 /// The leaf field number.
 /// </returns>
 public int GetLeafFieldNumber()
 {
     return(_messageExpression.GetLeafFieldNumber());
 }
Esempio n. 2
0
 /// <summary>
 /// Evaluates the expression when parsing a message.
 /// </summary>
 /// <param name="parserContext">
 /// It's the parser context.
 /// </param>
 /// <returns>
 /// A boolean value.
 /// </returns>
 public bool EvaluateParse(ref ParserContext parserContext)
 {
     return(_messageExpression.GetLeafMessage(ref parserContext,
                                              null).Fields.Contains(_messageExpression.GetLeafFieldNumber()));
 }