using System; using System.Collections.Generic; using System.Text; namespace ReZero { public static class Extensions { /// /// Determines whether two strings are equal, ignoring case. /// /// The first string to compare. /// The second string to compare. /// True if the strings are equal, ignoring case; otherwise, false. public static bool EqualsCase(this string a, string b) { return a?.ToLower() == b?.ToLower(); } /// /// Converts the first character of a string to uppercase and the rest to lowercase. /// /// The string to convert. /// The converted string. public static string FirstCharToUpper(this string input) { if (string.IsNullOrEmpty(input)) return input; return char.ToUpper(input[0]) + input.Substring(1).ToLower(); } } }