AK.F1.Timing.Extensions.StringExtensions.OrdinalEndsWith C# (CSharp) Method

OrdinalEndsWith() public static method

Returns a value indicating if x ends with y. The comparison is made using ordinal sorting rules.
/// Thrown when is . ///
public static OrdinalEndsWith ( this x, string y ) : bool
x this The string to compare to .
y string The string to compare to .
return bool
        public static bool OrdinalEndsWith(this string x, string y)
        {
            Guard.NotNull(x, "x");

            return x.EndsWith(y, StringComparison.Ordinal);
        }