public static bool StartsWithIgnoreCase(string value, string prefix) { if (value == null || prefix == null) { return false; } return value.StartsWith(prefix, StringComparison.InvariantCultureIgnoreCase); }