예제 #1
0
        public bool Compr(BsonElement bs)
        {
            Type        t   = this.GetType();
            BsonElement key = bs;
            BsonValue   val = bs.Value;

            return(ConvertionExtensions.Equal(this, bs.Name, getBstrVal, bs.Value));
        }
예제 #2
0
        public bool Compr(BsonDocument bs)
        {
            Type t = this.GetType();

            foreach (BsonElement key in bs)
            {
                string    name = key.Name;
                BsonValue val  = key.Value;
                if (!ConvertionExtensions.Equal(this, name, getBstrVal, val))
                {
                    return(false);
                }
            }
            return(true);
        }