Best way to create IPEndpoint from string
Posted
by S_Hultqvist
on Stack Overflow
See other posts from Stack Overflow
or by S_Hultqvist
Published on 2010-04-28T07:44:13Z
Indexed on
2010/05/22
7:10 UTC
Read the original article
Hit count: 111
c#
Since IPEndpoint contains a ToString method that outputs:
10.10.10.10:1010
There should be a Parse & TryParse method but there isn't.
I can split the string on the ':' and parse a IP address and a port.
But is there a more elegant way?
© Stack Overflow or respective owner