Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added method in StringOperations.cs
  • Loading branch information
oni-shiro committed Apr 15, 2025
commit feaa2d181b966194fe18b187a0c3255cf525aaa3
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ public StringOperations(bool caseSensitive)
/// </summary>
public bool Equals(string x, string y) => string.Equals(x, y, comparison);
/// <summary>
/// Determines whether the given strings are equal using the given comparison type.
/// </summary>
public bool Equals(string x, string y, StringComparison comparison) => string.Equals(x, y, comparison);
/// <summary>
/// Determines whether the given characters are equal.
/// </summary>
public bool Equals(char x, char y) => caseSensitive ? x == y : char.ToUpper(x) == char.ToUpper(y);
Expand Down