Inheritance: IPersistedLob
Ejemplo n.º 1
0
 public override bool Equals(Xlob xlob)
 {
     var xr = xlob as XmlReaderXlob;
     if (xr == null) return false;
     if (xr == this) return true;
     return _reader != null && _reader == xr._reader;
 }
Ejemplo n.º 2
0
 public override bool Equals(Xlob xlob)
 {
     if (xlob == this) return true;
     var sx = xlob as StringXlob;
     if (sx == null) return false;
     return _xmlFragment.Equals(sx._xmlFragment) && _context == sx._context && _nodeType == sx._nodeType;
 }
Ejemplo n.º 3
0
 public override bool Equals(Xlob xlob)
 {
     var fx = xlob as FileXlob;
     if (fx == null) return false;
     if (fx == this) return true;
     return fx._filename.Equals(_filename) && (fx._settings == null || _settings == null || fx._settings.Equals(_settings));
 }
Ejemplo n.º 4
0
        public override bool Equals(Xlob xlob)
        {
            if (xlob == null)
            {
                return(false);
            }
            if (xlob == this)
            {
                return(true);
            }
            var xb = xlob as WebXlob;

            if (xb != null)
            {
                return(_uri.Equals(xb._uri) && _credentials == xb._credentials && _headers == xb._headers);
            }
            if (!_uri.IsFile)
            {
                return(false);
            }
            var fb = xlob as FileXlob;

            if (fb == null)
            {
                return(false);
            }
            return(_uri.LocalPath.Equals(fb.Filename));
        }
Ejemplo n.º 5
0
 public override bool Equals(Xlob xlob)
 {
     if (xlob == null) return false;
     if (this == xlob) return true;
     var xn = xlob as XmlNodeXlob;
     if (xn == null) return false;
     return _node.Equals(xn._node);
 }
Ejemplo n.º 6
0
 public override bool Equals(Xlob xlob)
 {
     var ex = xlob as EmptyXlob;
     if (ex != null) return true;
     var 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;
 }
Ejemplo n.º 7
0
 public override bool Equals(Xlob xlob)
 {
     if (xlob == null) return false;
     if (xlob == this) return true;
     var ex = xlob as ExternalXlob;
     if (ex == null || !Connection.Equals(ex.Connection) || _identifier.Length != ex._identifier.Length ||
         (_compression != ex._compression && _compression != null && !_compression.Equals(ex._compression))) return false;
     byte[] a = _identifier, b = ex._identifier;
     return !a.Where((t, i) => t != b[i]).Any();
 }
        public override bool Equals(Xlob xlob)
        {
            var sx = xlob as XmlSerializableObjectXlob;

            if (sx == null)
            {
                return(false);
            }
            return(_obj == sx._obj);
        }
Ejemplo n.º 9
0
        public override bool Equals(Xlob xlob)
        {
            var fx = xlob as FileXlob;

            if (fx == null)
            {
                return(false);
            }
            if (fx == this)
            {
                return(true);
            }
            return(fx._filename.Equals(_filename) && (fx._settings == null || _settings == null || fx._settings.Equals(_settings)));
        }
Ejemplo n.º 10
0
        public override bool Equals(Xlob xlob)
        {
            var xr = xlob as XmlReaderXlob;

            if (xr == null)
            {
                return(false);
            }
            if (xr == this)
            {
                return(true);
            }
            return(_reader != null && _reader == xr._reader);
        }
Ejemplo n.º 11
0
        public override bool Equals(Xlob xlob)
        {
            if (xlob == this)
            {
                return(true);
            }
            var sx = xlob as StringXlob;

            if (sx == null)
            {
                return(false);
            }
            return(_xmlFragment.Equals(sx._xmlFragment) && _context == sx._context && _nodeType == sx._nodeType);
        }
Ejemplo n.º 12
0
        public override bool Equals(Xlob xlob)
        {
            var ex = xlob as EmptyXlob;

            if (ex != null)
            {
                return(true);
            }
            var 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);
        }
Ejemplo n.º 13
0
        public override bool Equals(Xlob xlob)
        {
            if (xlob == null)
            {
                return(false);
            }
            if (this == xlob)
            {
                return(true);
            }
            var xn = xlob as XmlNodeXlob;

            if (xn == null)
            {
                return(false);
            }
            return(_node.Equals(xn._node));
        }
Ejemplo n.º 14
0
 public abstract bool Equals(Xlob xlob);
Ejemplo n.º 15
0
 public abstract bool Equals(Xlob xlob);
Ejemplo n.º 16
0
 public override bool Equals(Xlob xlob)
 {
     if (xlob == null) return false;
     if (xlob == this) return true;
     var xb = xlob as WebXlob;
     if (xb != null) return _uri.Equals(xb._uri) && _credentials == xb._credentials && _headers == xb._headers;
     if (!_uri.IsFile) return false;
     var fb = xlob as FileXlob;
     if (fb == null) return false;
     return _uri.LocalPath.Equals(fb.Filename);
 }
Ejemplo n.º 17
0
 public override bool Equals(Xlob xlob)
 {
     var sx = xlob as XmlSerializableObjectXlob;
     if (sx == null) return false;
     return _obj == sx._obj;
 }