示例#1
0
		public override bool Equals(Xlob xlob)
		{
			XmlReaderXlob xr = xlob as XmlReaderXlob;
			if (xr == null) return false;
			if (xr == this) return true;
			return this.reader != null && this.reader == xr.reader;
		}
示例#2
0
		public override bool Equals(Xlob xlob)
		{
			EmptyXlob ex = xlob as EmptyXlob;
			if (ex != null) return true;
			XmlNodeXlob nx = xlob as XmlNodeXlob;
			if (nx != null && (nx.Node.NodeType == XmlNodeType.Document || nx.Node.NodeType == XmlNodeType.DocumentFragment) && nx.Node.ChildNodes.Count == 0) return true;
			return false;
		}
示例#3
0
		public override bool Equals(Xlob xlob)
		{
			if (xlob == null) return false;
			if (this == xlob) return true;
			XmlNodeXlob xn = xlob as XmlNodeXlob;
			if (xn == null) return false;
			return this.node.Equals(xn.node);
		}
示例#4
0
		public override bool Equals(Xlob xlob)
		{
			if (xlob == null) return false;
			if (xlob == this) return true;
			WebXlob xb = xlob as WebXlob;
			if (xb != null) return this.uri.Equals(xb.uri) && this.credentials == xb.credentials && this.headers == xb.headers;
			if (!this.uri.IsFile) return false;
			FileXlob fb = xlob as FileXlob;
			if (fb == null) return false;
			return this.uri.LocalPath.Equals(fb.Filename);
		}
示例#5
0
		public override bool Equals(Xlob xlob)
		{
			if (xlob == null) return false;
			if (xlob == this) return true;
			ExternalXlob ex = xlob as ExternalXlob;
			if (ex == null || !this.Connection.Equals(ex.Connection) || this.identifier.Length != ex.identifier.Length ||
				(this.compression != ex.compression && this.compression != null && !this.compression.Equals(ex.compression))) return false;
			byte[] a = this.identifier, b = ex.identifier;
			for (int i = 0; i < a.Length; i++)
				if (a[i] != b[i]) return false;
			return true;
		}
		public override bool Equals(Xlob xlob)
		{
			CompressedXlob cx = xlob as CompressedXlob;
			if (cx == null) return false;
			if (this == cx) return true;
			if (!this.compression.Equals(cx.compression)) return false;
			byte[] a = this.data, b = cx.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;
		}
		public override bool Equals(Xlob xlob)
		{
			XmlSerializableObjectXlob sx = xlob as XmlSerializableObjectXlob;
			if (sx == null) return false;
			return this.obj == sx.obj;
		}
示例#8
0
		public abstract bool Equals(Xlob xlob);