mirror of
https://github.com/netfun2000/ip2region.git
synced 2026-02-27 09:44:31 +08:00
feat(csharp): 2.0 xdb csharp client implementation
This commit is contained in:
14
binding/csharp/IP2Region.Net.Test/UtilTest.cs
Normal file
14
binding/csharp/IP2Region.Net.Test/UtilTest.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using IP2Region.Net.XDB;
|
||||
|
||||
namespace IP2Region.Net.Test;
|
||||
|
||||
[TestFixture]
|
||||
public class UtilTest
|
||||
{
|
||||
[TestCase("114.114.114.114")]
|
||||
public void TestIpAddressToUInt32(string value)
|
||||
{
|
||||
var uintIp = XDB.Util.IpAddressToUInt32(value);
|
||||
Console.WriteLine(uintIp);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user