Exemplo n.º 1
0
 /// <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);
 }
Exemplo n.º 2
0
		/// <summary>
		/// Copy content of this object into the given object.
		/// </summary>
		/// <param name="uri"></param>
		public void CopyTo(UriBase uri) {
			this.Uri = uri.Uri;
		}
Exemplo n.º 3
0
		/// <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;
		}
Exemplo n.º 4
0
		/// <summary>
		/// Initializes a new instance of the UriBase class.
		/// </summary>
		/// <param name="uri"></param>
		public UriBase(UriBase uri) {
			Clear();
			ParseUri(uri.Uri);
		}
Exemplo n.º 5
0
		/// <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;
		}
Exemplo n.º 6
0
 /// <summary>
 /// Copy content of this object into the given object.
 /// </summary>
 /// <param name="uri"></param>
 public void CopyTo(UriBase uri)
 {
     this.Uri = uri.Uri;
 }
Exemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of the UriBase class.
 /// </summary>
 /// <param name="uri"></param>
 public UriBase(UriBase uri)
 {
     Clear();
     ParseUri(uri.Uri);
 }