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)
211prevat = match.Index + match.Length; 227if (match.Index + match.Length != prevat) 228al.Add(input.Substring(match.Index + match.Length, prevat - match.Index - match.Length)); 291prevat = match.Index + match.Length; 309if (match.Index + match.Length != prevat) 310al.Add(input.Substring(match.Index + match.Length, prevat - match.Index - match.Length)); 374prevat = match.Index + match.Length; 397al.Add(input.Substring(match.Index + match.Length, prevat - match.Index - match.Length));
System.ComponentModel.DataAnnotations (4)
DataAnnotations\EmailAddressAttribute.cs (1)
30return valueAsString != null && _regex.Match(valueAsString).Length > 0;
DataAnnotations\PhoneAttribute.cs (1)
29return valueAsString != null && _regex.Match(valueAsString).Length > 0;
DataAnnotations\RegularExpressionAttribute.cs (1)
74return (m.Success && m.Index == 0 && m.Length == stringValue.Length);
DataAnnotations\UrlAttribute.cs (1)
30return valueAsString != null && _regex.Match(valueAsString).Length > 0;
System.ServiceModel.Activation (2)
System\ServiceModel\Activation\ServiceParser.cs (2)
418lineNumber += ServiceParserUtilities.LineCount(this.serviceText, textPos, match.Index + match.Length); 419textPos = match.Index + match.Length;
System.Web (30)
Configuration\CapabilitiesPattern.cs (3)
59if ((match = textPat.Match(text, textpos)).Success && match.Length > 0) { 62textpos = match.Index + match.Length; 91textpos = match.Index + match.Length;
Configuration\HttpCapabilitiesSectionHandler.cs (4)
406lineNumber += System.Web.UI.Util.LineCount(text, textpos, match.Index + match.Length); 407textpos = match.Index + match.Length; 417lineNumber += System.Web.UI.Util.LineCount(text, textpos, match.Index + match.Length); 418textpos = match.Index + match.Length;
Configuration\RegexWorker.cs (1)
53startIndex = match.Index + match.Length;
Handlers\AssemblyResourceLoader.cs (1)
679startIndex = match.Index + match.Length;
UI\BatchParser.cs (4)
135textPos = match.Index + match.Length; 151textPos = match.Index + match.Length; 156textPos = match.Index + match.Length; 161textPos = match.Index + match.Length;
UI\SimpleWebHandlerParser.cs (2)
237_lineNumber += Util.LineCount(text, textPos, match.Index + match.Length); 238textPos = match.Index + match.Length;
UI\TemplateParser.cs (7)
969match.Index + match.Length); 970textPos = match.Index + match.Length; 1138match.Index + match.Length); 1139textPos = match.Index + match.Length; 1204precompTargetWriter.Write(text.Substring(match.Index+match.Length)); 1601inputText, match.Index + match.Length)); 1670int startOfCode = match.Index + match.Length;
UI\WebControls\basecomparevalidator.cs (7)
296if (m.Groups[2].Length == 0 && hasDigits && m.Groups[5].Length == 0) { 302+ ((hasDigits && m.Groups[5].Length > 0) ? "." + m.Groups[5].Value : string.Empty); 321if (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)
95return(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)
665lastIndex = match.Index + match.Length; 671int indexOfEndOfScriptBeginTag = match.Index + match.Length;
UI\ScriptResourceAttribute.cs (1)
133startIndex = match.Index + match.Length;
System.Web.Mobile (3)
UI\MobileControls\Design\Util\SimpleParser.cs (2)
122textPos = match.Index + match.Length; 231textPos = match.Index + match.Length;
UI\MobileControls\PhoneCall.cs (1)
69match.Length != value.Length)
System.Web.Services (7)
System\Web\Services\Discovery\LinkGrep.cs (3)
51textpos += match.Length; 76textpos += match.Length; 139textpos += match.Length;
System\Web\Services\Protocols\PatternMatcher.cs (4)
90matches.Add(text.Substring(c.Index, c.Length)); 106return text.Substring(c.Index, c.Length); 124matches.Add(matchType.Match(text.Substring(c.Index, c.Length))); 140return matchType.Match(text.Substring(c.Index, c.Length));