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)); }
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); }