c# - System.Net.IPAddress.Address' is obsolete -


i try convert ip address uint:

ipaddress requstedipaddress; uint requesteipaddressuint = (uint)ipaddress.parse(requstedipaddress.tostring()).address; 

and got warning:

'system.net.ipaddress.address' obsolete: 'this property has been deprecated. address family dependent. please use ipaddress.equals method perform comparisons.

what mean , should use other way ?

the deprecation warning tells in next update of library has ipaddress defined, no longer have ipaddress.address property. code fail compile after next update library.

if go documentation ipaddress.address notes property obsolete , should instead use ipaddress.getaddressbytes.

the deprecation of ipaddress.address due adoption of ipv6 128 bits while c# type long, system.int64, 64 bits.


Comments

Popular posts from this blog

python - Alternative to referencing variable before assignment -

vb.net - How to ignore if a cell is empty nothing -

javascript - How to bind ViewModel Store to View? -