ArgumentsExtensions static class ArgumentsExtensions Documentation Code public static bool LastArgumentIsCancellationToken(this object[] arguments) Checks if the last element of an argument list is a CancellationToken public static bool LastParameterAcceptsCancellationToken(this IParameterInfo[] parameters) Checks if the last type of a parameter list has a type CancellationToken