Skip to content

Commit 0c91b35

Browse files
committed
Add EqualsIgnoreCase() method to IOExtensions
DEVSIX-1789
1 parent e0650fa commit 0c91b35

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

itext/itext.io/itext/io/IOExtensions.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,11 @@ public static bool Contains<TKey, TValue>(this IDictionary<TKey, TValue> diction
165165
return dictionary.ContainsKey(key);
166166
}
167167

168+
public static bool EqualsIgnoreCase(this String str, String anotherString)
169+
{
170+
return String.Equals(str, anotherString, StringComparison.OrdinalIgnoreCase);
171+
}
172+
168173
public static Assembly GetAssembly(this Type type) {
169174
#if !NETSTANDARD1_6
170175
return type.Assembly;

0 commit comments

Comments
 (0)