Example #1
0
 /// <summary>
 /// Returns whether or not the uri refers to a function call
 /// </summary>
 /// <param name="uri">The uri to extend</param>
 /// <returns>whether or not the uri refers to a function call</returns>
 public static bool IsFunction(this ODataUri uri)
 {
     return(uri.CheckLastSegment <FunctionSegment>(f => f.Function.IsFunction()) ||
            uri.CheckLastTwoSegments <FunctionSegment, ParametersExpressionSegment>(f => f.Function.IsFunction(), p => true));
 }