public override bool IsEquivalentTo(UriTemplateQueryValue other)
 {
     Ensure.NotNull(other, "why would we ever call this?");
     //if (other == null) {
     //	Fx.Assert("why would we ever call this?");
     //	return false;
     //}
     return(other.Nature == UriTemplatePartType.Variable);
 }
Exemplo n.º 2
0
 public static bool IsNullOrEmpty(UriTemplateQueryValue utqv)
 {
     if (utqv == null)
     {
         return(true);
     }
     if (utqv == Empty)
     {
         return(true);
     }
     return(false);
 }
Exemplo n.º 3
0
        public override bool IsEquivalentTo(UriTemplateQueryValue other)
        {
            Ensure.NotNull(other, "why would we ever call this?");
            //if (other == null) {
            //	Fx.Assert("why would we ever call this?");
            //	return false;
            //}
            if (other.Nature != UriTemplatePartType.Literal)
            {
                return(false);
            }
            var otherAsLiteral = other as UriTemplateLiteralQueryValue;

            Ensure.NotNull(otherAsLiteral, "The nature requires that this will be OK");
            return(CompareTo(otherAsLiteral) == 0);
        }
Exemplo n.º 4
0
 public override bool IsEquivalentTo(UriTemplateQueryValue other)
 {
     return(other == Empty);
 }
Exemplo n.º 5
0
 public abstract bool IsEquivalentTo(UriTemplateQueryValue other);