Calyptus.Lob.WebClob.Equals C# (CSharp) Method

Equals() public method

public Equals ( Clob clob ) : bool
clob Clob
return bool
		public override bool Equals(Clob clob)
		{
			if (clob == null) return false;
			if (clob == this) return true;
			WebClob wb = clob as WebClob;
			if (wb != null) return this.uri.Equals(wb.uri) && this.credentials == wb.credentials && this.headers == wb.headers;
			if (!this.uri.IsFile) return false;
			FileClob fb = clob as FileClob;
			if (fb == null) return false;
			return this.uri.LocalPath.Equals(fb.Filename);
		}