System.URI
instead of string
s CS-A1000Representing URIs as string
s can prove to be a security risk as they are difficult to parse, validate and encode. It is therefore recommended that you use the more safer and reliable built-in alternative System.URI
.
public string getEndpointUri()
{
return _endpoint;
}
public Uri getEndpointUri()
{
return new URI(_endpoint);
}