65 references to Length
System (15)
net\System\Net\WebPermission.cs (4)
1003
&& (M.
Length
== s.Length)) { // ... and the whole string matched
1016
&& (M.
Length
== s.Length)) { // ... and the whole string matched
1138
&& (M.
Length
== uriString.Length)) { // ... and the whole string matched
1149
&& (M.
Length
== uriString.Length)) { // ... and the whole string matched
regex\system\text\regularexpressions\RegexReplacement.cs (11)
211
prevat = match.Index + match.
Length
;
227
if (match.Index + match.
Length
!= prevat)
228
al.Add(input.Substring(match.Index + match.
Length
, prevat - match.Index - match.
Length
));
291
prevat = match.Index + match.
Length
;
309
if (match.Index + match.
Length
!= prevat)
310
al.Add(input.Substring(match.Index + match.
Length
, prevat - match.Index - match.
Length
));
374
prevat = match.Index + match.
Length
;
397
al.Add(input.Substring(match.Index + match.
Length
, prevat - match.Index - match.
Length
));
System.ComponentModel.DataAnnotations (4)
DataAnnotations\EmailAddressAttribute.cs (1)
30
return valueAsString != null && _regex.Match(valueAsString).
Length
> 0;
DataAnnotations\PhoneAttribute.cs (1)
29
return valueAsString != null && _regex.Match(valueAsString).
Length
> 0;
DataAnnotations\RegularExpressionAttribute.cs (1)
74
return (m.Success && m.Index == 0 && m.
Length
== stringValue.Length);
DataAnnotations\UrlAttribute.cs (1)
30
return valueAsString != null && _regex.Match(valueAsString).
Length
> 0;
System.ServiceModel.Activation (2)
System\ServiceModel\Activation\ServiceParser.cs (2)
418
lineNumber += ServiceParserUtilities.LineCount(this.serviceText, textPos, match.Index + match.
Length
);
419
textPos = match.Index + match.
Length
;
System.Web (30)
Configuration\CapabilitiesPattern.cs (3)
59
if ((match = textPat.Match(text, textpos)).Success && match.
Length
> 0) {
62
textpos = match.Index + match.
Length
;
91
textpos = match.Index + match.
Length
;
Configuration\HttpCapabilitiesSectionHandler.cs (4)
406
lineNumber += System.Web.UI.Util.LineCount(text, textpos, match.Index + match.
Length
);
407
textpos = match.Index + match.
Length
;
417
lineNumber += System.Web.UI.Util.LineCount(text, textpos, match.Index + match.
Length
);
418
textpos = match.Index + match.
Length
;
Configuration\RegexWorker.cs (1)
53
startIndex = match.Index + match.
Length
;
Handlers\AssemblyResourceLoader.cs (1)
679
startIndex = match.Index + match.
Length
;
UI\BatchParser.cs (4)
135
textPos = match.Index + match.
Length
;
151
textPos = match.Index + match.
Length
;
156
textPos = match.Index + match.
Length
;
161
textPos = match.Index + match.
Length
;
UI\SimpleWebHandlerParser.cs (2)
237
_lineNumber += Util.LineCount(text, textPos, match.Index + match.
Length
);
238
textPos = match.Index + match.
Length
;
UI\TemplateParser.cs (7)
969
match.Index + match.
Length
);
970
textPos = match.Index + match.
Length
;
1138
match.Index + match.
Length
);
1139
textPos = match.Index + match.
Length
;
1204
precompTargetWriter.Write(text.Substring(match.Index+match.
Length
));
1601
inputText, match.Index + match.
Length
));
1670
int startOfCode = match.Index + match.
Length
;
UI\WebControls\basecomparevalidator.cs (7)
296
if (m.Groups[2].
Length
== 0 && hasDigits && m.Groups[5].
Length
== 0) {
302
+ ((hasDigits && m.Groups[5].
Length
> 0) ? "." + m.Groups[5].Value : string.Empty);
321
if (m.Groups[2].
Length
== 0 && m.Groups[3].
Length
== 0) {
326
+ (m.Groups[2].
Length
> 0 ? m.Groups[2].Value : "0")
327
+ ((m.Groups[3].
Length
> 0) ? "." + m.Groups[3].Value: string.Empty);
UI\WebControls\RegularExpressionValidator.cs (1)
95
return(m.Success && m.Index == 0 && m.
Length
== controlValue.Length);
System.Web.Extensions (4)
Script\Serialization\JavaScriptObjectDeserializer.cs (1)
377
_s.MoveNext(match.
Length
);
UI\ScriptRegistrationManager.cs (2)
665
lastIndex = match.Index + match.
Length
;
671
int indexOfEndOfScriptBeginTag = match.Index + match.
Length
;
UI\ScriptResourceAttribute.cs (1)
133
startIndex = match.Index + match.
Length
;
System.Web.Mobile (3)
UI\MobileControls\Design\Util\SimpleParser.cs (2)
122
textPos = match.Index + match.
Length
;
231
textPos = match.Index + match.
Length
;
UI\MobileControls\PhoneCall.cs (1)
69
match.
Length
!= value.Length)
System.Web.Services (7)
System\Web\Services\Discovery\LinkGrep.cs (3)
51
textpos += match.
Length
;
76
textpos += match.
Length
;
139
textpos += match.
Length
;
System\Web\Services\Protocols\PatternMatcher.cs (4)
90
matches.Add(text.Substring(c.Index, c.
Length
));
106
return text.Substring(c.Index, c.
Length
);
124
matches.Add(matchType.Match(text.Substring(c.Index, c.
Length
)));
140
return matchType.Match(text.Substring(c.Index, c.
Length
));