public void CopyTo(UriBase uri) { this.Uri = uri.Uri; }
/// <summary> /// Returns the endpoint URI of the channel definition. /// </summary> /// <returns>The endpoint URI representation of the channel definition.</returns> public UriBase GetUri() { if (_uri == null) { if (this.Endpoint != null) { if( this.Endpoint.Url != null ) _uri = new UriBase(this.Endpoint.Url); if (this.Endpoint.Uri != null) _uri = new UriBase(this.Endpoint.Uri); } } return _uri; }
public UriBase(UriBase uri) { this.Clear(); this.ParseUri(uri.Uri); }
/// <summary> /// Initializes a new instance of the UriBase class. /// </summary> /// <param name="uri"></param> public UriBase(UriBase uri) { Clear(); ParseUri(uri.Uri); }
/// <summary> /// Copy content of this object into the given object. /// </summary> /// <param name="uri"></param> public void CopyTo(UriBase uri) { this.Uri = uri.Uri; }
/// <summary> /// Returns whether the value of the called object is equal to that of the given object. /// Equality here means if all the fields are the same. /// </summary> /// <param name="uri"></param> /// <returns></returns> public bool EqualTo(UriBase uri) { if( uri == null ) return false; return this.Uri == uri.Uri; }