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);
 }
示例#2
0
 public static bool IsNullOrEmpty(UriTemplateQueryValue utqv)
 {
     if (utqv == null)
     {
         return(true);
     }
     if (utqv == Empty)
     {
         return(true);
     }
     return(false);
 }
示例#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);
        }
示例#4
0
 public override bool IsEquivalentTo(UriTemplateQueryValue other)
 {
     return(other == Empty);
 }
示例#5
0
 public abstract bool IsEquivalentTo(UriTemplateQueryValue other);