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