/// <summary> /// Processes the top operator (if any) and returns the combined query. /// </summary> /// <param name="top">The top amount or null if none was specified.</param> /// <returns> the top clause </returns> public static long?ProcessTop(long?top) { if (top.HasValue) { if (top < 0) { throw new ODataException(ODataErrorStrings.MetadataBinder_TopRequiresNonNegativeInteger(top.ToString())); } return(top); } return(null); }