diff --git a/binding/c#/IP2Region/DBSearcher.cs b/binding/c#/IP2Region/DBSearcher.cs index 80756b3..aaae79b 100644 --- a/binding/c#/IP2Region/DBSearcher.cs +++ b/binding/c#/IP2Region/DBSearcher.cs @@ -362,21 +362,21 @@ namespace IP2Region /// public async Task MemorySearchAsync(string ip) { - return await Task.FromResult(MemorySearch(ip)); + return Task.FromResult(MemorySearch(ip)); } /// /// Get the region throught the ip address with b-tree search algorithm. /// public async Task BtreeSearchAsync(string ip) { - return await Task.FromResult(BtreeSearch(ip)); - } + return Task.FromResult(BtreeSearch(ip)); + } /// /// Get the region throught the ip address with binary search algorithm. /// public async Task BinarySearchAsync(string ip) { - return await Task.FromResult(BinarySearch(ip)); + return Task.FromResult(BinarySearch(ip)); } #endregion @@ -397,4 +397,4 @@ namespace IP2Region } } -} \ No newline at end of file +}