From 0a55d1cf4505ed331bb350005d7a812285e34ad7 Mon Sep 17 00:00:00 2001 From: Alex Bazhanau Date: Tue, 28 May 2019 13:55:15 +0300 Subject: [PATCH] AddressEquals added --- .../Bloqboard.Ethereum.Common.csproj | 2 +- .../Bloqboard.Ethereum.Common/StringExtensions.cs | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 Bloqboard.Ethereum.Common/Bloqboard.Ethereum.Common/StringExtensions.cs diff --git a/Bloqboard.Ethereum.Common/Bloqboard.Ethereum.Common/Bloqboard.Ethereum.Common.csproj b/Bloqboard.Ethereum.Common/Bloqboard.Ethereum.Common/Bloqboard.Ethereum.Common.csproj index b3093ab..cabb719 100644 --- a/Bloqboard.Ethereum.Common/Bloqboard.Ethereum.Common/Bloqboard.Ethereum.Common.csproj +++ b/Bloqboard.Ethereum.Common/Bloqboard.Ethereum.Common/Bloqboard.Ethereum.Common.csproj @@ -2,7 +2,7 @@ netstandard2.0 - 0.0.2 + 0.0.3 diff --git a/Bloqboard.Ethereum.Common/Bloqboard.Ethereum.Common/StringExtensions.cs b/Bloqboard.Ethereum.Common/Bloqboard.Ethereum.Common/StringExtensions.cs new file mode 100644 index 0000000..3755069 --- /dev/null +++ b/Bloqboard.Ethereum.Common/Bloqboard.Ethereum.Common/StringExtensions.cs @@ -0,0 +1,12 @@ +using System; + +namespace Bloqboard.Ethereum.Common +{ + public static class StringExtensions + { + public static bool AddressEquals(this string a, string b) + { + return string.Equals(a, b, StringComparison.OrdinalIgnoreCase); + } + } +} \ No newline at end of file