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