2 writes to variables
System.ServiceModel (2)
System\UriTemplate.cs (2)
518
this.
variables
= new VariablesCollection(this);
526
this.
variables
= new VariablesCollection(this);
32 references to variables
System.ServiceModel (32)
System\UriTemplate.cs (32)
206
if (this.
variables
== null)
218
if ((this.
variables
.DefaultValues != null) && this.
variables
.DefaultValues.ContainsKey(uppercaseKey))
223
if (this.
variables
.PathSegmentVariableNames.Contains(uppercaseKey))
225
this.
variables
.AddDefaultValue(uppercaseKey, kvp.Value);
227
else if (this.
variables
.QueryValueVariableNames.Contains(uppercaseKey))
252
if ((this.
variables
!= null) && (this.
variables
.DefaultValues != null))
254
this.
variables
.ValidateDefaults(out this.firstOptionalSegment);
284
if (this.
variables
== null)
290
return this.
variables
.PathSegmentVariableNames;
298
if (this.
variables
== null)
304
return this.
variables
.QueryValueVariableNames;
313
return (this.
variables
== null);
342
if (this.
variables
== null)
348
bindInfo = this.
variables
.PrepareBindInformation(parameters, omitDefaults);
369
if (this.
variables
== null)
375
bindInfo = this.
variables
.PrepareBindInformation(parameters, omitDefaults);
392
if (this.
variables
== null)
403
bindInfo = this.
variables
.PrepareBindInformation(values);
516
if (this.
variables
== null)
520
return this.
variables
.AddPathVariable(sourceNature, varDeclaration, out hasDefaultValue);
524
if (this.
variables
== null)
528
return this.
variables
.AddQueryVariable(varDeclaration);
637
int lastPathParameter = ((this.
variables
== null) ? -1 : this.
variables
.PathSegmentVariableNames.Count - 1);
742
Fx.Assert(this.
variables
!= null, "Otherwise - no default values to bind");
743
Fx.Assert(this.
variables
.DefaultValues != null, "Otherwise - no default values to bind");
752
this.
variables
.LookupDefault(vps.VarName, boundParameters);
1016
if ((template.
variables
!= null) && (template.
variables
.DefaultValues != null))
1018
foreach (KeyValuePair<string, string> kvp in template.
variables
.DefaultValues)