Esempio n. 1
0
		public override bool Equals(Clob clob)
		{
			FileClob fc = clob as FileClob;
			if (fc == null) return false;
			if (fc == this) return true;
			return fc.filename.Equals(this.filename) && (fc.encoding == null || this.encoding == null || fc.encoding == this.encoding);
		}
Esempio n. 2
0
		public override bool Equals(Clob clob)
		{
			if (clob == this) return true;
			StringClob sc = clob as StringClob;
			if (sc == null) return false;
			return this.text.Equals(sc.text);
		}
Esempio n. 3
0
		public override bool Equals(Clob clob)
		{
			TextReaderClob rc = clob as TextReaderClob;
			if (rc == null) return false;
			if (rc == this) return true;
			return this.reader == rc.reader;
		}
Esempio n. 4
0
		public override bool Equals(Clob clob)
		{
			EmptyClob ec = clob as EmptyClob;
			if (ec != null) return true;
			StringClob sc = clob as StringClob;
			if (sc != null && sc.Text == "") return true;
			return false;
		}
Esempio n. 5
0
		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);
		}
Esempio n. 6
0
		public override bool Equals(Clob clob)
		{
			if (clob == null) return false;
			if (clob == this) return true;
			ExternalClob ec = clob as ExternalClob;
			if (ec == null || !this.Connection.Equals(ec.Connection) || this.identifier.Length != ec.identifier.Length ||
				!this.encoding.Equals(ec.encoding) ||
				(this.compression != ec.compression && this.compression != null && !this.compression.Equals(ec.compression))) return false;
			byte[] a = this.identifier, b = ec.identifier;
			for (int i = 0; i < a.Length; i++)
				if (a[i] != b[i]) return false;
			return true;
		}
Esempio n. 7
0
		public override bool Equals(Clob clob)
		{
			CompressedClob cb = clob as CompressedClob;
			if (cb == null) return false;
			if (this == cb) return true;
			if ((this.compression != cb.compression && this.compression != null && !this.compression.Equals(cb.compression)) || !this.encoding.Equals(cb.encoding)) return false;
			byte[] a = this.data, b = cb.data;
			if (a.Length != b.Length) return false;
			for (int i = 0; i < a.Length; i++)
				if (a[i] != b[i])
					return false;
			return true;
		}
Esempio n. 8
0
		public abstract bool Equals(Clob clob);