64 references to UriTemplatePartType
System.ServiceModel (64)
System\UriTemplate.cs (17)
117
UriTemplatePartType
wildcardType;
123
case
UriTemplatePartType
.Literal:
127
case
UriTemplatePartType
.Variable:
187
if (UriTemplateHelpers.IdentifyPartType(key) !=
UriTemplatePartType
.Literal)
508
internal string AddPathVariable(
UriTemplatePartType
sourceNature, string varDeclaration)
513
internal string AddPathVariable(
UriTemplatePartType
sourceNature, string varDeclaration,
674
while (this.segments[segmentIndex].Nature ==
UriTemplatePartType
.Literal)
748
case
UriTemplatePartType
.Variable:
1142
List<
UriTemplatePartType
> pathSegmentVariableNature;
1150
this.pathSegmentVariableNature = new List<
UriTemplatePartType
>();
1210
if (this.pathSegmentVariableNature[varIndex] !=
UriTemplatePartType
.Variable)
1228
public string AddPathVariable(
UriTemplatePartType
sourceNature, string varDeclaration, out bool hasDefaultValue)
1230
Fx.Assert(sourceNature !=
UriTemplatePartType
.Literal, "Literal path segments can't be the source for path variables");
1428
if (this.owner.segments[segmentIndex].Nature !=
UriTemplatePartType
.Variable)
1449
if (ps.Nature !=
UriTemplatePartType
.Variable)
1495
(this.owner.segments[this.owner.segments.Count - 1].Nature !=
UriTemplatePartType
.Literal))
1673
this.varName = owner.AddPathVariable(
UriTemplatePartType
.Variable,
System\UriTemplateCompoundPathSegment.cs (2)
26
: base(originalSegment,
UriTemplatePartType
.Compound, endsWithSlash)
59
string varName = template.AddPathVariable(
UriTemplatePartType
.Compound,
System\UriTemplateEquivalenceComparer.cs (1)
48
if (obj.segments[i].Nature ==
UriTemplatePartType
.Literal)
System\UriTemplateHelpers.cs (15)
35
if (kvp.Value.Nature ==
UriTemplatePartType
.Literal)
143
if (utqv.Nature ==
UriTemplatePartType
.Literal)
151
public static
UriTemplatePartType
IdentifyPartType(string part)
174
return
UriTemplatePartType
.Literal;
185
return
UriTemplatePartType
.Compound;
190
return
UriTemplatePartType
.Compound;
194
return
UriTemplatePartType
.Variable;
204
UriTemplatePartType
partType;
209
public static bool IsWildcardSegment(string segment, out
UriTemplatePartType
type)
214
case
UriTemplatePartType
.Literal:
217
case
UriTemplatePartType
.Compound:
220
case
UriTemplatePartType
.Variable:
266
if (kvp.Value.Nature ==
UriTemplatePartType
.Literal)
282
if (!array[i].queries.ContainsKey(s) || (array[i].queries[s].Nature !=
UriTemplatePartType
.Literal))
338
Fx.Assert(utqv.Nature ==
UriTemplatePartType
.Literal, "query for name is not literal");
System\UriTemplateLiteralPathSegment.cs (2)
22
: base(segment,
UriTemplatePartType
.Literal, segment.EndsWith("/", StringComparison.Ordinal))
117
if (other.Nature !=
UriTemplatePartType
.Literal)
System\UriTemplateLiteralQueryValue.cs (2)
19
: base(
UriTemplatePartType
.Literal)
72
if (other.Nature !=
UriTemplatePartType
.Literal)
System\UriTemplatePathSegment.cs (8)
17
readonly
UriTemplatePartType
nature;
20
protected UriTemplatePathSegment(string originalSegment,
UriTemplatePartType
nature,
34
public
UriTemplatePartType
Nature
54
case
UriTemplatePartType
.Literal:
57
case
UriTemplatePartType
.Compound:
60
case
UriTemplatePartType
.Variable:
63
string varName = template.AddPathVariable(
UriTemplatePartType
.Variable,
69
string varName = template.AddPathVariable(
UriTemplatePartType
.Variable,
System\UriTemplateQueryValue.cs (7)
17
readonly
UriTemplatePartType
nature;
20
protected UriTemplateQueryValue(
UriTemplatePartType
nature)
33
public
UriTemplatePartType
Nature
50
case
UriTemplatePartType
.Literal:
53
case
UriTemplatePartType
.Compound:
57
case
UriTemplatePartType
.Variable:
86
: base(
UriTemplatePartType
.Literal)
System\UriTemplateTrieNode.cs (6)
78
case
UriTemplatePartType
.Literal:
82
case
UriTemplatePartType
.Compound:
86
case
UriTemplatePartType
.Variable:
100
case
UriTemplatePartType
.Literal:
104
case
UriTemplatePartType
.Compound:
108
case
UriTemplatePartType
.Variable:
System\UriTemplateVariablePathSegment.cs (2)
16
: base(originalSegment,
UriTemplatePartType
.Variable, endsWithSlash)
53
return (other.Nature ==
UriTemplatePartType
.Variable);
System\UriTemplateVariableQueryValue.cs (2)
17
: base(
UriTemplatePartType
.Variable)
42
return (other.Nature ==
UriTemplatePartType
.Variable);