How do you parse an IP address string to a uint value in C#?

后端 未结 9 734
庸人自扰
庸人自扰 2020-12-30 13:44

I\'m writing C# code that uses the windows IP Helper API. One of the functions I\'m trying to call is \"GetBestInterface\" that takes a \'uint\' representation of an IP. Wha

9条回答
  •  無奈伤痛
    2020-12-30 14:15

    I have never found a clean solution (i.e.: a class / method in the .NET Framework) for this problem. I guess it just isn't available except the solutions / examples you provided or Aku's example. :(

提交回复
热议问题