是否有任何.NET Framework方法可以执行INET_ATON()

Mon*_*RPG 2 c# inet-aton

这样做可以在下面进行

address = '174.36.207.186'

( o1, o2, o3, o4 ) = address.split('.')

integer_ip =   ( 16777216 * o1 )
             + (    65536 * o2 )
             + (      256 * o3 )
             +              o4
Run Code Online (Sandbox Code Playgroud)

Dou*_*las 7

string s = "174.36.207.186";

uint i = s.Split('.')
          .Select(uint.Parse)
          .Aggregate((a, b) => a * 256 + b);
Run Code Online (Sandbox Code Playgroud)