diff --git a/binding/csharp/IP2Region.Net/Abstractions/ISearcher.cs b/binding/csharp/IP2Region.Net/Abstractions/ISearcher.cs index ffd64b9..d270e4e 100644 --- a/binding/csharp/IP2Region.Net/Abstractions/ISearcher.cs +++ b/binding/csharp/IP2Region.Net/Abstractions/ISearcher.cs @@ -8,13 +8,31 @@ using System.Net; namespace IP2Region.Net.Abstractions; +/// +/// IP 转化为地理位置搜索器接口 +/// public interface ISearcher { + /// + /// 搜索方法 + /// + /// IP 地址字符串 如 192.168.0.1 + /// string? Search(string ipStr); + /// + /// 搜索方法 + /// string? Search(IPAddress ipAddress); + /// + /// 搜索方法 仅限 IPv4 使用 + /// + /// IPv4 地址字节数组小端读取 uint 数值 string? Search(uint ipAddress); + /// + /// 获得 内部 IO 访问次数 + /// int IoCount { get; } -} \ No newline at end of file +} diff --git a/binding/csharp/IP2Region.Net/XDB/Util.cs b/binding/csharp/IP2Region.Net/XDB/Util.cs index d92a613..b151df2 100644 --- a/binding/csharp/IP2Region.Net/XDB/Util.cs +++ b/binding/csharp/IP2Region.Net/XDB/Util.cs @@ -73,4 +73,4 @@ public static class Util return ret; } -} \ No newline at end of file +}