1 write to varLitPairs
System.ServiceModel (1)
System\UriTemplateCompoundPathSegment.cs (1)
29
this.
varLitPairs
= new List<VarAndLitPair>();
41 references to varLitPairs
System.ServiceModel (41)
System\UriTemplateCompoundPathSegment.cs (41)
95
result.
varLitPairs
.Add(new VarAndLitPair(varName, ((literal == string.Empty) ? string.Empty : Uri.UnescapeDataString(literal))));
100
if (string.IsNullOrEmpty(result.
varLitPairs
[result.
varLitPairs
.Count - 1].Literal))
111
if (string.IsNullOrEmpty(result.
varLitPairs
[result.
varLitPairs
.Count - 1].Literal))
126
Fx.Assert(valueIndex + this.
varLitPairs
.Count <= values.Length, "Not enough values to bind");
128
for (int pairIndex = 0; pairIndex < this.
varLitPairs
.Count; pairIndex++)
131
path.Append(this.
varLitPairs
[pairIndex].Literal);
155
if (this.
varLitPairs
.Count != otherAsCompound.
varLitPairs
.Count)
163
for (int pairIndex = 0; pairIndex < this.
varLitPairs
.Count; pairIndex++)
165
if (StringComparer.OrdinalIgnoreCase.Compare(this.
varLitPairs
[pairIndex].Literal,
166
otherAsCompound.
varLitPairs
[pairIndex].Literal) != 0)
206
for (int pairIndex = 0; pairIndex < this.
varLitPairs
.Count - 1; pairIndex++)
208
int nextLiteralPosition = segment.IndexOf(this.
varLitPairs
[pairIndex].Literal, segmentPosition, StringComparison.Ordinal);
216
boundParameters.Add(this.
varLitPairs
[pairIndex].VarName, varValue);
218
segmentPosition = nextLiteralPosition + this.
varLitPairs
[pairIndex].Literal.Length;
222
if (string.IsNullOrEmpty(this.
varLitPairs
[
varLitPairs
.Count - 1].Literal))
226
boundParameters.Add(this.
varLitPairs
[
varLitPairs
.Count - 1].VarName,
231
else if ((segmentPosition + this.
varLitPairs
[
varLitPairs
.Count - 1].Literal.Length < segment.Length) &&
232
segment.EndsWith(this.
varLitPairs
[
varLitPairs
.Count - 1].Literal, StringComparison.Ordinal))
236
boundParameters.Add(this.
varLitPairs
[
varLitPairs
.Count - 1].VarName,
237
segment.Substring(segmentPosition, segment.Length - segmentPosition - this.
varLitPairs
[
varLitPairs
.Count - 1].Literal.Length));
377
return (other.
varLitPairs
.Count - this.
varLitPairs
.Count);
399
return (other.
varLitPairs
.Count - this.
varLitPairs
.Count);
416
return (other.
varLitPairs
.Count - this.
varLitPairs
.Count);
429
return (other.
varLitPairs
.Count - this.
varLitPairs
.Count);
437
string reversedSuffix = ReverseString(this.
varLitPairs
[this.
varLitPairs
.Count - 1].Literal);
438
string reversedOtherSuffix = ReverseString(other.
varLitPairs
[other.
varLitPairs
.Count - 1].Literal);