1513 references to Substring
ComSvcConfig (2)
Options.cs (1)
392methods = methods.Substring(1, methods.Length - 2);
parent\svcutil\CommandLineParser.cs (1)
196arg = arg.Substring(0, delim);
mscorlib (115)
microsoft\win32\registry.cs (2)
102basekeyName = keyName.Substring(0, i).ToUpper(System.Globalization.CultureInfo.InvariantCulture); 138subKeyName = keyName.Substring(i + 1, keyName.Length - i - 1);
system\__filters.cs (2)
125str = str.Substring(0, str.Length - 1); 150str = str.Substring(0, str.Length - 1);
system\AppContext\AppContextDefaultValues.DesktopOverrides.cs (2)
48string name = overrides.Substring(firstCharOfKey, lenghtOfKey); 52string value = overrides.Substring(firstCharOfValue, lengthOfValue);
system\appdomain.cs (1)
4707info.ApplicationBase = imageLocation.Substring(0, i+1);
system\AppDomainSetup.cs (3)
245string appBase = imageLocation.Substring(0, i+1); 440pathRoot = pathRoot.Substring(0, System.IO.PathInternal.GetRootLength(pathRoot)); 456pathRoot = appBase.Substring(0, index);
system\boolean.cs (1)
223return value.Substring(start, end - start + 1);
system\diagnostics\eventing\activitytracker.cs (2)
270activityName = activityName.Substring(0, activityName.Length - EventSource.s_ActivityStartSuffix.Length); 272activityName = activityName.Substring(0, activityName.Length - EventSource.s_ActivityStopSuffix.Length);
system\diagnostics\eventing\eventsource.cs (3)
3446string taskName = eventName.Substring(0, eventName.Length - s_ActivityStartSuffix.Length); // Remove the Stop suffix to get the task name 3466string taskName = eventName.Substring(0, eventName.Length - s_ActivityStopSuffix.Length); // Remove the Stop suffix to get the task name 5364activityFilterString = activityFilterString.Substring(0, colonIdx);
System\Diagnostics\Eventing\TraceLogging\EventSourceActivity.cs (1)
289eventName = eventName.Substring(0, eventName.Length - 5);
system\environment.cs (1)
1576return samName.Substring(0, index);
system\globalization\calendardata.cs (2)
328this.saAbbrevEraNames[0] = this.saEraNames[0].Substring(2,2); 417sMonthDay = sMonthDay.Substring(0, unescapedCharacterIndex);
system\globalization\culturedata.cs (3)
1267this.SENGLISHLANGUAGE.Substring(0, this.sEnglishLanguage.Length - 1) + 2113StringBuilder sb = new StringBuilder(time.Substring(0, j)); 2856return (str.Substring(start, end - start + 1));
system\globalization\cultureinfo.cs (1)
642culture = new CultureInfo(name.Substring(0, idx));
system\globalization\datetimeformatinfoscanner.cs (1)
248String strWithoutDot = str.Substring(0, str.Length - 1);
system\globalization\datetimeparse.cs (1)
4778Value = Value.Substring(0, i + 1);
system\globalization\idnmapping.cs (5)
118unicode = unicode.Substring(index, count); 248ascii = ascii.Substring(index, count); 673unicode.Substring(iAfterLastDot, M_strAcePrefix.Length).Equals( 855!ascii.Substring(iAfterLastDot, M_strAcePrefix.Length).Equals( 869output.Append(ascii.Substring(iAfterLastDot, iNextDot - iAfterLastDot));
system\globalization\japanesecalendar.cs (3)
296if (!Number.TryParseInt32(value.Substring(0,4), NumberStyles.None, NumberFormatInfo.InvariantInfo, out year) || 297!Number.TryParseInt32(value.Substring(5,2), NumberStyles.None, NumberFormatInfo.InvariantInfo, out month) || 298!Number.TryParseInt32(value.Substring(8,2), NumberStyles.None, NumberFormatInfo.InvariantInfo, out day))
system\globalization\stringinfo.cs (2)
169return(this.String.Substring(start, (this.Indexes[lengthInTextElements + startingTextElement] - start))); 289return (str.Substring(index, GetCurrentTextElementLen(str, index, len, ref uc, ref charLen)));
system\globalization\textelementenumerator.cs (1)
129return (str.Substring(index - currTextElementLen, currTextElementLen));
system\globalization\textinfo.cs (1)
822result.Append( this.ToUpper(input.Substring(inputIndex, charLen)) );
system\globalization\timespanparse.cs (1)
214tok.sep = m_value.Substring(startIndex, length);
system\guid.cs (8)
494if (!StringToInt(guidString.Substring(numStart, numLen) /*first DWORD*/, -1, ParseNumbers.IsTight, out result.parsedGuid._a, ref result)) 511if (!StringToShort(guidString.Substring(numStart, numLen) /*first DWORD*/, -1, ParseNumbers.IsTight, out result.parsedGuid._b, ref result)) 527if (!StringToShort(guidString.Substring(numStart, numLen) /*first DWORD*/, -1, ParseNumbers.IsTight, out result.parsedGuid._c, ref result)) 570uint number = (uint)Convert.ToInt32(guidString.Substring(numStart, numLen),16); 631if (!StringToInt(guidString.Substring(startPos, 8) /*first DWORD*/, -1, ParseNumbers.IsTight, out result.parsedGuid._a, ref result)) 635if (!StringToShort(guidString.Substring(startPos, 4), -1, ParseNumbers.IsTight, out result.parsedGuid._b, ref result)) 639if (!StringToShort(guidString.Substring(startPos, 4), -1, ParseNumbers.IsTight, out result.parsedGuid._c, ref result)) 643if (!StringToInt(guidString.Substring(startPos, 4), -1, ParseNumbers.IsTight, out temp, ref result))
system\io\directory.cs (3)
254String dir = fullPath.Substring(0, i+1); 1055string root = fullPath.Substring(0, Path.GetRootLength(fullPath)); 1065return path.Substring(0, Path.GetRootLength(path));
system\io\directoryinfo.cs (3)
186s = FullPath.Substring(0, FullPath.Length - 1); 623String rootPath = FullPath.Substring(0, rootLength); 754s = fullPath.Substring(0, fullPath.Length - 1);
system\io\filesysteminfo.cs (1)
130return FullPath.Substring(i, length - i);
system\io\isolatedstorage\isolatedstoragefile.cs (1)
1114String currDir = fullPath.Substring(0, i);
system\io\longpath.cs (4)
119String result = path.Substring(0, GetRootLength(tempPath)); 153String result = tempPath.Substring(0, i); 499String dir = fullPath.Substring(0, i + 1); 982return path.Substring(0, LongPath.GetRootLength(path));
system\io\path.cs (7)
122s = path.Substring(0, i); 200GetFullPath(tempPath.Substring(0, pos)); 228String dir = path.Substring(0, i); 311return path.Substring(i, length - i); 1015return path.Substring(i + 1, length - i - 1); 1031return path.Substring(0,i); 1054return path.Substring(0, GetRootLength(path));
system\io\stringreader.cs (3)
115s = _s.Substring(_pos, _length - _pos); 133String result = _s.Substring(_pos, i - _pos); 141String result = _s.Substring(_pos, i - _pos);
system\reflection\__filters.cs (2)
42str = str.Substring(0, str.Length - 1); 62str = str.Substring(0, str.Length - 1);
system\reflection\emit\modulebuilder.cs (1)
931baseName = className.Substring(0, i);
system\reflection\emit\typebuilder.cs (1)
677m_strNameSpace = fullname.Substring(0, iLast);
system\rttype.cs (3)
2280ns = fullname.Substring(0, nsDelimiter); 2283name = fullname.Substring(nsDelimiter + 1, nameLength); 2356name = name.Substring(0, name.Length - 1);
system\runtime\interopservices\marshal.cs (2)
1373customManagedNamespace = customManagedNamespace.Substring(0, customManagedNamespace.Length - 4); 1375customManagedNamespace = customManagedNamespace.Substring(0, customManagedNamespace.Length - 4);
system\runtime\interopservices\tceadaptergen\namespaceextractor.cs (1)
19return FullyQualifiedTypeName.Substring(0, TypeNameStartPos);
system\runtime\interopservices\typelibconverter.cs (1)
324asmFileName = strFileNameNoPath.Substring(0, strFileNameNoPath.Length - ".dll".Length);
system\runtime\remoting\configuration.cs (4)
745typeName = typeAssem.Substring(0, index).Trim(); 772typeName = value.Substring(0, index).Trim(); 820asmName = asmName.Substring(0,index); 1366asmName = asmName.Substring(0, index);
system\runtime\remoting\objref.cs (1)
170typeName = typeAndAssembly.Substring(0, index);
system\runtime\remoting\remotingconfigparser.cs (2)
1829metric = time.Substring(time.Length - metricLength, metricLength); 1832int value = Int32.Parse(time.Substring(0, time.Length - metricLength), CultureInfo.InvariantCulture);
system\runtime\remoting\remotingservices.cs (4)
2618String xmlTypeName = qualifiedTypeName.Substring(5, index - 5); 2621qualifiedTypeName.Substring(index + 2, qualifiedTypeName.Length - (index + 2)); 2656String xmlTypeName = qualifiedTypeName.Substring(5, index - 5); 2659qualifiedTypeName.Substring(index + 2, qualifiedTypeName.Length - (index + 2));
system\runtime\remoting\soap.cs (3)
445soapAction = soapAction.Substring(1, soapAction.Length - 2); 505soapAction = soapAction.Substring(1, soapAction.Length - 2); 656typeNamespace = inNamespace.Substring(fullNS.Length,index-fullNS.Length);
system\runtime\remoting\soapinteroptypes.cs (3)
210time = value.Substring(0, value.Length-1)+"-00:00"; 464time = value.Substring(0, value.Length-1)+"-00:00"; 1503key = value.Substring(0,index);
system\security\permissions\fileiopermission.cs (1)
1388String str = path.Substring( 0, 3 );
system\security\util\sitestring.cs (1)
60String ipv6Addr = site.Substring(braIndex+1, ketIndex-braIndex-1);
system\security\util\stringexpressionset.cs (3)
166temp = temp.Substring( 0, indexOfNull ); 240temp = temp.Substring(0, indexOfNull); 331temp = temp.Substring( 0, indexOfNull );
system\security\util\urlstring.cs (8)
240m_protocol = url.Substring( 0, index ); 290m_userpass = temp.Substring(0,userpassIndex); 327temp = temp.Substring( Rindex, portIndex - Rindex ); 331m_port = Int32.Parse( temp.Substring(portIndex + 1, tempIndex - portIndex - 1), CultureInfo.InvariantCulture ); 332temp = temp.Substring( Rindex, portIndex - Rindex ) + temp.Substring( tempIndex ); 510localSite = temp.Substring(0,index); 596String site = temp.Substring( 0, index ); 837directory += intermediateDirectory.Substring( 0, slashIndex );
system\security\util\xmlutil.cs (1)
110className = fullClassName.Substring(0, namespaceClassNameLength);
system\string.cs (4)
1116splitStrings[arrIndex++] = Substring(currIndex, sepList[i]-currIndex ); 1153splitStrings[arrIndex++] = Substring(currIndex, sepList[i]-currIndex ); 1264return this.Substring (startIndex, Length-startIndex); 2957return Substring(0, startIndex);
PresentationBuildTasks (40)
Base\System\Windows\Markup\XmlCompatibilityReader.cs (2)
980string prefix = pair.Substring(0, colonIndex); 981string elementName = pair.Substring(colonIndex + 1, length - 1 - colonIndex);
BuildTasks\Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (1)
1094newSourceDir = fullFilePath.Substring(0, pathEndIndex + 1);
BuildTasks\Microsoft\Build\Tasks\Windows\MarkupCompilePass2.cs (1)
557newSourceDir = fullFilePath.Substring(0, pathEndIndex + 1);
BuildTasks\Microsoft\Build\Tasks\Windows\UidManager.cs (1)
879prefix = uid.Substring(0, separatorIndex);
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (7)
484string targetPath = TargetPath + SourceFileInfo.RelativeSourceFilePath.Substring(0, pathEndIndex + 1); 721sourceFileInfo.RelativeSourceFilePath = file.Path.Substring(0, fileExtIndex); 1406isValid = IsValidCLRNamespace(subClassFullName.Substring(0, index), false) && 1434ns = className.Substring(0, index); 2264genericName = genericName.Substring(0, bang); 2307genericName = genericName.Substring(0, bang); 2458string bns = baseClassFullName.Substring(0, dotIndex);
BuildTasks\Ms\Internal\MarkupCompiler\ParserExtension.cs (1)
275string ownerTagName = localAttribName.Substring(0, lastIndex);
BuildTasks\MS\Internal\Tasks\CompilerWrapper.cs (2)
367newRelativeFilePath = newRelativeFilePath.Substring(0, fileExtIndex); 418newSourceDir = fullFilePath.Substring(0, pathEndIndex + 1);
Core\CSharp\System\Windows\Media\ParsersCommon.cs (1)
442string subString = _pathString.Substring(start, _curIndex - start);
Framework\System\Windows\Markup\BamlMapTable.cs (1)
1189typeClrNamespace = typeFullName.Substring(0, dotIndex);
Framework\System\Windows\Markup\MarkupExtensionParser.cs (7)
448args = attrValue.Substring(i, length-i); 586prefix = typename.Substring(0, typeIndex); 772prefix = typename.Substring(0, typeIndex); 1194args.Substring(i,length-(i)), lineNumber, linePosition); 1393string prefix = (nameIndex < 0) ? String.Empty : propertyName.Substring(0, nameIndex); 1528string prefix = (nameIndex < 0) ? String.Empty : name.Substring(0, nameIndex); 1645builder.Append(value.Substring(0,i));
Framework\System\Windows\Markup\StyleXamlParser.cs (3)
285string ownerTagName = localAttribName.Substring(0, lastIndex); 399target = propOrEvent.Substring(0, dotIndex); 406prefix = target.Substring(0, colonIndex);
Framework\System\Windows\Markup\TemplateXamlParser.cs (3)
321string ownerTagName = localAttribName.Substring(0, lastIndex); 447target = propertyName.Substring(0, dotIndex); 454prefix = target.Substring(0, colonIndex);
Framework\System\Windows\Markup\XamlReaderHelper.cs (3)
1676ownerName = longName.Substring(0, idx); 2509return _text.Substring(_start, _current - _start); 3070prefix = attribData.Args.Substring(0, colonIndex);
Framework\System\Windows\Markup\XamlTypeMapper.cs (6)
375string assemblyShortName = assemblyName.Substring(0, indexComma).ToUpper(CultureInfo.InvariantCulture); 1039globalClassName = localName.Substring(0, lastIndex); 2346prefix = typeName.Substring(0, typeIndex); 2357typeName = typeName.Substring(0, typeIndex); 3088string prefix = typeString.Substring(0, colonIndex); 3170string prefix = typeString.Substring(0, colonIndex);
Shared\MS\Internal\TokenizerHelper.cs (1)
122return _str.Substring(_currentTokenIndex,_currentTokenLength);
PresentationCore (24)
Core\CSharp\MS\Internal\FontCache\CanonicalFontFamilyReference.cs (1)
189locationString = normalizedString.Substring(0, i);
Core\CSharp\MS\Internal\FontCache\FamilyCollection.cs (2)
550familyName = familyName.Substring(0, indexOfSpace); 670faceName = faceName.Substring(0, indexOfSpace);
Core\CSharp\MS\Internal\FontCache\FontCacheUtil.cs (5)
777return NormalizeFontFamilyReference(friendlyName.Substring(startIndex, length).Replace(",,", ",")); 813return "#" + fontFamilyReference.Substring(startIndex, length).ToUpperInvariant(); 823return fontFamilyReference.Substring(startIndex, length).ToUpperInvariant(); 828string location = fontFamilyReference.Substring(startIndex, fragmentIndex - startIndex); 829string fragment = fontFamilyReference.Substring(fragmentIndex, (startIndex + length) - fragmentIndex);
Core\CSharp\MS\Internal\FontCache\FontResourceCache.cs (2)
78escapedPath = escapedPath.Substring(0, escapedPath.Length - FakeFileName.Length); 127folderName = resourceFullName.Substring(0, indexOfLastSlash + 1);
Core\CSharp\MS\Internal\IO\Packaging\ByteRangeDownloader.cs (2)
882int firstByteOffset = Int32.Parse(contentRange.Substring(ByteRangeUnit.Length, 896int lastByteOffset = Int32.Parse(contentRange.Substring(0, index), NumberStyles.None, NumberFormatInfo.InvariantInfo);
Core\CSharp\MS\Internal\IO\Packaging\DeobfuscatingStream.cs (1)
349guidBytes[i] = Convert.ToByte(wellFormedGuidString.Substring(i * 2, 2), 16);
Core\CSharp\System\Windows\Input\Command\KeyGesture.cs (2)
261keyGestureToken = keyGestures.Substring(0, index); 274keyDisplayString = displayStrings.Substring(0, index);
Core\CSharp\System\Windows\Input\Command\KeyGestureConverter.cs (2)
105fullName = fullName.Substring(0, index).Trim(); 116modifiersToken = fullName.Substring(0, index);
Core\CSharp\System\Windows\Input\Command\MouseGestureConverter.cs (1)
76modifiersToken = fullName.Substring(0,Offset);
Core\CSharp\System\Windows\Markup\XmlLanguage.cs (1)
704return languageTag.Substring (0, i);
Core\CSharp\System\Windows\Media\CharacterMetrics.cs (1)
173string field = s.Substring(i, k - i);
Core\CSharp\System\Windows\Media\Parsers.cs (1)
164string tokens = trimmedColor.Substring(3, trimmedColor.Length - 3);
Core\CSharp\System\Windows\Media\ParsersCommon.cs (1)
442string subString = _pathString.Substring(start, _curIndex - start);
Core\CSharp\System\Windows\Navigation\BaseUriHelper.cs (2)
296firstSegment = original.Substring(start, end - start); 692string byteString = assemblyKey.Substring(i * 2, 2);
PresentationFramework (116)
src\Framework\Microsoft\Win32\FileDialog.cs (2)
1651StringBuilder s = new StringBuilder(fileName.Substring(0, fileName.Length - currentExtension.Length)); 1851extensions.Add(ext.Substring(i + 1, ext.Length - (i + 1)));
src\Framework\MS\Internal\AppModel\DeploymentExceptionMapper.cs (3)
158 version = version.Substring(0, indexToThirdDot); 166 version = version.Substring(0, indexToSecondDot); 180 version = version.Substring(0, indexToSecondDot);
src\Framework\MS\Internal\Data\PathParser.cs (3)
143SetError(SRID.PathSyntax, _path.Substring(0, _index), _path.Substring(_index)); 212SetError(SRID.UnmatchedParen, _path.Substring(0, _index)); 216string name = _path.Substring(start, _index - start).Trim();
src\Framework\MS\Internal\Globalization\BamlResourceContent.cs (2)
162UnescapeString(input.Substring(tokenStart, i - tokenStart)) 179UnescapeString(input.Substring(tokenStart + 1, i - tokenStart - 1))
src\Framework\MS\Internal\Globalization\BamlResourceDeserializer.cs (4)
98_reader.Name.Substring(0, _reader.Name.LastIndexOf('.')), 124_reader.Name.Substring(0, _reader.Name.LastIndexOf('.')), 207_reader.Name.Substring(0, _reader.Name.LastIndexOf('.')), 275_reader.Name.Substring(0, _reader.Name.LastIndexOf('.')),
src\Framework\MS\Internal\Globalization\BamlTreeUpdater.cs (1)
804nameSpace = fullTypeName.Substring(0, lastDot);
src\Framework\MS\Internal\Interop\InternalDispatchObject.cs (1)
139int dispid = int.Parse(name.Substring(8, name.Length-9), CultureInfo.InvariantCulture);
src\Framework\MS\Internal\IO\Packaging\XamlFilter.cs (1)
317String result = _currentContent.Substring(_countOfCharactersReturned, numCharactersToReturn);
src\Framework\MS\Internal\Markup\StaticExtension.cs (2)
78string typeString = Member.Substring(0, dotIndex); 103Member = Member.Substring(dotIndex + 1, Member.Length - dotIndex - 1);
src\Framework\MS\Internal\TraceData.cs (1)
281name = name.Substring(0, name.Length - suffix.Length);
src\Framework\System\Windows\Controls\DataGridLengthConverter.cs (1)
279string valueString = goodString.Substring(0, strLen - strLenUnit);
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (1)
1884return (text.Length <= maxLength || maxLength == -1) ? text : text.Substring(0, maxLength);
src\Framework\System\Windows\Controls\TextSearch.cs (3)
299Prefix = prefix.Substring(0, prefix.Length - lastChar.Length); 345temp = matchedText.Substring(0, i); 355temp = matchedText.Substring(0, j);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (1)
12392filename = filename.Substring(0, dotIndex) +
src\Framework\System\Windows\Documents\FixedPage.cs (2)
676String inputUriStringWithoutFragment = inputUriString.Substring(0, inputUriString.IndexOf('#')); 1136fixedPage.StartPartUriString = startPartUriString.Substring(0, startPartUriString.IndexOf('#'));
src\Framework\System\Windows\Documents\FixedSOMTextRun.cs (1)
155run.Text = s.Substring(startIndex, endIndex-startIndex);
src\Framework\System\Windows\Documents\Glyphs.cs (4)
450string characterClusterSpec = valueSpec.Substring(firstBracket + 1, secondBracket - (firstBracket + 1)); 458string characterClusterSpec = valueSpec.Substring(firstBracket + 1, colon - (firstBracket + 1)); 460string glyphClusterSpec = valueSpec.Substring(colon + 1, secondBracket - (colon + 1)); 576string valueSpec = glyphsProp.Substring(valueStartIndex, len);
src\Framework\System\Windows\Documents\RtfToXamlReader.cs (14)
3715entry.Name = entry.Name.Substring(0, iCP); 3782lhs_name = name.Substring(0, i); 3783lhs_tag = name.Substring(i + 1, name.Length - i - 1); 3788rhs_name = value.Substring(0, i); 3789rhs_tag = value.Substring(i + 1, value.Length - i - 1); 3808string s = lhs_name.Substring(0, rhs_name.Length); 5043string substring = text.Substring(index, currentIndex - index); 8246string imageXaml = dnImage.Xaml.Substring(0, uriSourceIndex); 8415pictureUri = instructionName.Substring(uriIndex, instructionName.Length - uriIndex - 1); 8420pictureUri = pictureUri.Substring(0, pictureUriEndIndex); 8470string param = instr.Substring(iStart, iEnd - iStart); 8639string ptString = instr.Substring(iStart, i - iStart); 8678string name = instr.Substring(iStart, i - iStart); 11563string subtext = text.Substring(nStart, nEnd - nStart);
src\Framework\System\windows\Documents\TextEditor.cs (4)
1234textData = textData.Substring(0, splitPosition); 1240textData = textData.Substring(0, extraCharsAllowed-1); 1274textData = textData.Substring(0, endOfFirstLine); 1279textData = textData.Substring(0, endOfFirstLine);
src\Framework\System\windows\Documents\TextEditorCopyPaste.cs (2)
1149end.InsertTextInRun(pastedText.Substring(currentLineStart, i - currentLineStart)); 1175end.InsertTextInRun(pastedText.Substring(currentLineStart, pastedText.Length - currentLineStart));
src\Framework\System\Windows\Documents\TextFindEngine.cs (3)
538string subString = textString.Substring(i, j - i + 1); 571if ((!matchKashida || IsKashidaMatch(textString.Substring(i, j - i + 1), findPattern, compareInfo)) && 572(!matchAlefHamza || IsAlefHamzaMatch(textString.Substring(i, j - i + 1), findPattern, compareInfo)))
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (1)
583string assembly = (index == -1 ? elementTypeStandardized.Module.Name : elementTypeStandardized.Module.Name.Substring(0, index));
src\Framework\System\Windows\Documents\XamlToRtfParser.cs (5)
328token.Text = _xaml.Substring(startIndex, _xamlIndex - startIndex); 811AddParseData(xaml.Substring(startIndex, xamlIndex - startIndex)); 851AddParseData(xaml.Substring(startIndex, xamlIndex - startIndex)); 897AddParseData(xaml.Substring(startIndex, xamlIndex - startIndex)); 978AddParseData(xaml.Substring(startIndex, xamlIndex - startIndex));
src\Framework\System\Windows\Documents\XamlToRtfWriter.cs (6)
2462string newCharacters = characters.Substring(index, end - index); 2658string prefix = xaml.Substring(iStart, iEnd - iStart); 2741string num = name.Substring(3, name.Length - 4); 2757string num = name.Substring(2, name.Length - 3); 3569s = s.Substring(0, n + 1); 3832string onenum = thickness.Substring(s, e - s);
src\Framework\System\Windows\Documents\ZoomPercentageConverter.cs (1)
180zoomString = zoomString.Substring(0, zoomString.Length - 1);
src\Framework\System\Windows\Input\Command\CommandConverter.cs (1)
248typeName = localName.Substring(0, Offset);
src\Framework\System\Windows\Input\Command\CommandValueSerializer.cs (1)
138string typeName = value.Substring(0, dotIndex);
src\Framework\System\Windows\LengthConverter.cs (1)
220valueString = valueString.Substring(0, strLen - strLenUnit);
src\Framework\System\Windows\Markup\Baml2006\Baml2006Reader.cs (3)
2085string uriTypePrefix = uriInput.Substring(0, colonIdx); 2107string keyword = uriInput.Substring(assemblyKeywordStartIdx, equalIdx - assemblyKeywordStartIdx); 2130string assemblyShortName = assemblyLongName.Substring(0, assemblyLongName.IndexOf(','));
src\Framework\System\Windows\Markup\BamlMapTable.cs (1)
1189typeClrNamespace = typeFullName.Substring(0, dotIndex);
src\Framework\System\Windows\Markup\BamlReader.cs (4)
407_ownerTypeName = info.Name.Substring(0, index); 454_ownerTypeName = cpInfo.Name.Substring(0, index); 2102_ownerTypeName = nodeInfo.Name.Substring(0, index); 2173_ownerTypeName = nodeInfo.Name.Substring(0, index);
src\Framework\System\Windows\Markup\BamlRecordReader.cs (1)
4271string resourceName = resourceNameString.Substring(1, resourceNameString.Length-2);
src\Framework\System\Windows\Markup\BamlRecords.cs (1)
4636_typeFullName.Substring(0, periodIndex) :
src\Framework\System\Windows\Markup\BamlWriter.cs (1)
557prefix = data.Args.Substring(0, colonIndex);
src\Framework\System\Windows\Markup\DependencyPropertyConverter.cs (1)
157string typeName = value.Substring(0, lastIndex);
src\Framework\System\Windows\Markup\MarkupExtensionParser.cs (7)
448args = attrValue.Substring(i, length-i); 586prefix = typename.Substring(0, typeIndex); 772prefix = typename.Substring(0, typeIndex); 1194args.Substring(i,length-(i)), lineNumber, linePosition); 1393string prefix = (nameIndex < 0) ? String.Empty : propertyName.Substring(0, nameIndex); 1528string prefix = (nameIndex < 0) ? String.Empty : name.Substring(0, nameIndex); 1645builder.Append(value.Substring(0,i));
src\Framework\System\Windows\Markup\Primitives\MarkupWriter.cs (3)
495name = name.Substring(0, name.Length - EXTENSIONLENGTH); 1062name = name.Substring(0, name.Length - EXTENSIONLENGTH); 1660string ns = uri.Substring(clrUriPrefix.Length, uri.IndexOf(";", StringComparison.Ordinal) - clrUriPrefix.Length);
src\Framework\System\Windows\Markup\RoutedEventConverter.cs (2)
68string typeName = routedEventName.Substring(0, lastIndex); 166nsPrefix = nameString.Substring(0, nsIndex);
src\Framework\System\Windows\Markup\RoutedEventValueSerializer.cs (1)
67Type type = typeSerializer.ConvertFromString(value.Substring(0, index), context) as Type;
src\Framework\System\Windows\Markup\XamlFigureLengthSerializer.cs (1)
263string valueString = goodString.Substring(0, strLen - strLenUnit);
src\Framework\System\Windows\Markup\XamlGridLengthSerializer.cs (1)
265string valueString = goodString.Substring(0, strLen - strLenUnit);
src\Framework\System\Windows\Markup\XamlTypeMapper.cs (9)
1039globalClassName = localName.Substring(0, lastIndex); 1739globalClassName = localName.Substring(0,lastIndex); 1867string globalClassName = localName.Substring(0,lastIndex); 2265prefix = typeName.Substring(0, colonIndex); 2266typeName = typeName.Substring(colonIndex+1, typeName.Length-colonIndex-1); 2346prefix = typeName.Substring(0, typeIndex); 2357typeName = typeName.Substring(0, typeIndex); 3088string prefix = typeString.Substring(0, colonIndex); 3257nsPrefix = nameString.Substring (0, nsIndex);
src\Framework\System\Windows\Markup\XamlTypeMapperSchemaContext.cs (1)
271clrNamespace = xmlNamespace.Substring(clrNsIndex, assemblyIndex - clrNsIndex);
src\Framework\System\Windows\PropertyPath.cs (4)
577name = name.Substring(1, name.Length-2); 584string ownerName = name.Substring(0, lastIndex).Trim(); 852nsPrefix = name.Substring(0, nsIndex).TrimEnd(); 921name = name.Substring(1, name.Length - 2);
src\Framework\System\Windows\PropertyPathConverter.cs (2)
207if (Int32.TryParse( originalPath.Substring(i+1, j-i-1), 213builder.Append(originalPath.Substring(start, i-start+1));
src\Framework\System\Windows\Shell\ThumbButtonInfo.cs (1)
113text = text.Substring(0, 259);
SMSvcHost (1)
System\ServiceModel\Activation\ListenerAdapter.cs (1)
482string protocol = binding.Substring(0, index);
svcutil (1)
CommandLineParser.cs (1)
196arg = arg.Substring(0, delim);
System (193)
compmod\microsoft\csharp\csharpcodeprovider.cs (2)
3268sb.Append(CreateEscapedIdentifier(baseType.Substring(lastIndex, i-lastIndex))); 3275sb.Append(CreateEscapedIdentifier(baseType.Substring(lastIndex, i-lastIndex)));
compmod\microsoft\visualbasic\VBCodeProvider.cs (4)
1139Output.Write(typeName.Substring(0, index+1)); 2602value = value.Substring(1, value.Length - 2); 2692sb.Append(CreateEscapedIdentifier(baseType.Substring(lastIndex, i-lastIndex))); 2699sb.Append(CreateEscapedIdentifier(baseType.Substring(lastIndex, i-lastIndex)));
compmod\microsoft\win32\SystemEvents.cs (1)
1099companyName = ns.Substring(0, firstDot);
compmod\system\codedom\CodeTypeReference.cs (5)
194subTypeNames.Push(typeName.Substring(current+1 , subTypeNameEndIndex - current - 1)); 206subTypeNames.Push(typeName.Substring(current+1 , subTypeNameEndIndex - current - 1)); 225CodeTypeReference type = new CodeTypeReference(typeName.Substring(0, end + 1), Options); 246this.baseType = typeName.Substring(0, end + 1); 402result = typeName.Substring( start, index - start);
compmod\system\componentmodel\design\DesigntimeLicenseContext.cs (1)
208string key = licFileName.Substring(0, licFileName.LastIndexOf("."));
compmod\system\componentmodel\design\PropertyTabAttribute.cs (1)
101className = tabClassNames[i].Substring(0, commaIndex).Trim();
compmod\system\componentmodel\design\serialization\DesignerSerializerAttribute.cs (1)
78baseType = baseType.Substring(0, comma);
compmod\system\componentmodel\design\serialization\RootDesignerSerializerAttribute.cs (1)
94baseType = baseType.Substring(0, comma);
compmod\system\componentmodel\DesignerAttribute.cs (1)
126baseType = baseType.Substring(0, comma);
compmod\system\componentmodel\EditorAttribute.cs (1)
98baseType = baseType.Substring(0, comma);
compmod\system\componentmodel\PropertyDescriptor.cs (1)
397typeName = typeName.Substring(0, comma);
compmod\system\componentmodel\ReflectTypeDescriptionProvider.cs (2)
889t = Type.GetType(typeName.Substring(0, commaIndex)); 1986t = Type.GetType(typeName.Substring(0, commaIndex));
compmod\system\configuration\appsettingsreader.cs (1)
63return val.Substring(1, val.Length - 2);
compmod\system\diagnostics\assertwrapper.cs (1)
241message = SR.GetString(SR.DebugMessageTruncated, message.Substring(0, i));
compmod\system\diagnostics\DefaultTraceListener.cs (1)
173internalWrite(message.Substring(offset, internalWriteSize));
compmod\system\diagnostics\XmlWriterTraceListener.cs (8)
292InternalWrite(str.Substring(lastIndex, i-lastIndex)); 297InternalWrite(str.Substring(lastIndex, i-lastIndex)); 302InternalWrite(str.Substring(lastIndex, i-lastIndex)); 307InternalWrite(str.Substring(lastIndex, i-lastIndex)); 312InternalWrite(str.Substring(lastIndex, i-lastIndex)); 317InternalWrite(str.Substring(lastIndex, i-lastIndex)); 322InternalWrite(str.Substring(lastIndex, i-lastIndex)); 328InternalWrite(str.Substring(lastIndex, str.Length-lastIndex));
net\System\_DomainName.cs (5)
29res = str.Substring(start, end-start).ToLower(CultureInfo.InvariantCulture); 37res = str.Substring(start, end-start); 442string asciiForm = unescapedHostname.Substring(curPos, newPos - curPos); 458unicodeEqvlHost += map.GetUnicode(unescapedHostname.Substring(curPos, newPos - curPos)); 472unicodeEqvlHost += unescapedHostname.Substring(curPos, newPos - curPos).ToLowerInvariant();
net\System\_IPv6Address.cs (1)
424scopeId = address.Substring(start, i-start);
net\System\Net\_AuthenticationManagerBase.cs (1)
237return completeUri.Substring(0, lastFwdSlash + 1);
net\System\Net\_AutoWebProxyScriptHelper.cs (1)
293hostDom = hostDom.Substring(0,index);
net\System\Net\_CommandStream.cs (5)
225string sendCommand = m_Commands[m_Index].Command.Substring(0, m_Commands[m_Index].Command.Length-2); 230sendCommand = sendCommand.Substring(0, index) + " ********"; 619m_Buffer = szResponse.Substring(szResponse.Length-unusedChars, unusedChars); 657state.Resp.StatusDescription = responseString.Substring(0, completeLength); 660if (Logging.On) Logging.PrintInfo(Logging.Web, this, SR.GetString(SR.net_log_received_response, responseString.Substring(0, completeLength-2)));
net\System\Net\_DigestClient.cs (7)
503name = incoming.Substring(start, offset-start); 508value = HttpDigest.unquote(incoming.Substring(offset+1, index-offset-1)); 519incoming = start > 0 ? incoming.Substring(0, start-1) : ""; // First parameter might have been invalid, leaving start at 0 807name = challenge.Substring(start, offset-start); 813value = unquote(challenge.Substring(offset+1, index-offset-1)); 836name = challenge.Substring(start, offset-start); 841value = unquote(challenge.Substring(offset+1, index-offset-1));
net\System\Net\_FtpControlStream.cs (16)
787path = path.Substring(0, path.Length-1); 796directory = path.Substring(0, index+1); 797filename = path.Substring(index+1, path.Length-(index+1)); 802directory = directory.Substring(0, directory.Length-1); 910int year = Convert.ToInt32(dateTimeLine.Substring(0, 4), NumberFormatInfo.InvariantInfo); 911int month = Convert.ToInt16(dateTimeLine.Substring(4, 2), NumberFormatInfo.InvariantInfo); 912int day = Convert.ToInt16(dateTimeLine.Substring(6, 2), NumberFormatInfo.InvariantInfo); 913int hour = Convert.ToInt16(dateTimeLine.Substring(8, 2), NumberFormatInfo.InvariantInfo); 914int minute = Convert.ToInt16(dateTimeLine.Substring(10, 2), NumberFormatInfo.InvariantInfo); 915int second = Convert.ToInt16(dateTimeLine.Substring(12, 2), NumberFormatInfo.InvariantInfo); 950string filename = str.Substring(start, end-start); 996if (Int64.TryParse (str.Substring(pos1, pos2-pos1), 1036return str.Substring(firstQuote+1, lastQuote-firstQuote-1); 1078string addressInfo = responseString.Substring(pos1+1, pos2-pos1-1); 1189response.StatusCodeString = responseString.Substring(0, 3); 1225if(responseString.Substring(lineStart, 3) == response.StatusCodeString)
net\System\Net\_KerberosClient.cs (1)
68incoming = challenge.Substring(blobBegin, index - blobBegin);
net\System\Net\_LoggingObject.cs (2)
952Assert(fullMessage.Substring(0, pipeIndex), detailLength > 0 ? fullMessage.Substring(pipeIndex + 1, detailLength) : null);
net\System\Net\_NegotiateClient.cs (1)
67incoming = challenge.Substring(blobBegin, index - blobBegin);
net\System\Net\_NetworkingPerfCounters.cs (1)
366result = friendlyName.Substring(0, instanceNameMaxLength - postfix.Length) + postfix;
net\System\Net\_NtlmClient.cs (1)
66incoming = challenge.Substring(blobBegin, index - blobBegin);
net\System\Net\_ServiceNameStore.cs (1)
155return uriPrefix.Substring(i, j - i);
net\System\Net\Cache\HttpRequestCacheValidator.cs (6)
701lastHeaderName = s.Substring(0, colpos); 946privateList.Add(s.Substring(start, i-start)); 976nocacheList.Add(s.Substring(start, i-start)); 1065privateList.Add(s.Substring(start, i-start)); 1093nocacheList.Add(s.Substring(start, i-start)); 1187list.Add(s.Substring(start, end-start+1));
net\System\Net\Cache\IERequestCache.cs (1)
273string value = entry.MetaInfo.Substring(start, (ch[i-1] == '\r'? (i-1):(i+1)) - start);
net\System\Net\cookie.cs (4)
505m_path = path.Substring(0, path.LastIndexOf('/')); //may be empty 510m_path = path.Substring(0, path.LastIndexOf('/')+1); 972tokenString = m_tokenStream.Substring(m_start, m_tokenLength); 1607return value.Length == 2? string.Empty: value.Substring(1, value.Length-2);
net\System\Net\FtpWebRequest.cs (2)
536username = Uri.UnescapeDataString(userInfo.Substring(0, index)); 538password = Uri.UnescapeDataString(userInfo.Substring(index, userInfo.Length - index));
net\System\Net\HttpListener.cs (2)
665registeredPrefix = uriPrefix[j]==':' ? String.Copy(uriPrefix) : uriPrefix.Substring(0, j) + (i==7 ? ":80" : ":443") + uriPrefix.Substring(j); 1754string userName = inBlob.Substring(0, index);
net\System\Net\HttpListenerRequest.cs (6)
1268attrValue = headerValue.Substring(i+1, j-i-1).Trim(); 1279attrValue = headerValue.Substring(i, j-i).Trim(); 1303values.Add(s.Substring(i, ci-i)); 1488name = s.Substring(si, ti-si); 1489value = s.Substring(ti+1, i-ti-1); 1492value = s.Substring(si, i-si);
net\System\Net\HttpListenerRequestUriBuilder.cs (3)
252if (!AppendUnicodeCodePointValuePercentEncoded(rawPath.Substring(index + 1, 4))) 261if (!AddPercentEncodedOctetToRawOctetsList(encoding, rawPath.Substring(index, 2))) 480return AddSlashToAsteriskOnlyPath(uriString.Substring(pathStartIndex, queryIndex - pathStartIndex));
net\System\Net\HttpWebRequest.cs (2)
4749return s.Substring(0,i); 6284if (String.Compare(curRange.Substring(0, curRange.IndexOf('=')), rangeSpecifier, StringComparison.OrdinalIgnoreCase) != 0) {
net\System\Net\HttpWebResponse.cs (1)
246m_CharacterSet = contentType.Substring(i,j - i).Trim();
net\System\Net\mail\Attachment.cs (2)
69name = fileName.Substring(start + 1, fileName.Length - start - 1); 224return cid.Substring(1, cid.Length - 2);
net\System\Net\mail\MailAddress.cs (1)
85this.displayName = this.displayName.Substring(1, this.displayName.Length - 2);
net\System\Net\mail\MailAddressParser.cs (4)
182string domain = data.Substring(index + 1, startingIndex - index); 242string localPart = data.Substring(index + 1, startingIndex - index); 286displayName = data.Substring(leftIndex, firstNonCommentIndex - leftIndex); 310displayName = data.Substring(index + 1, startingIndex - index);
net\System\Net\mail\MailBnfHelper.cs (1)
259return data.Substring(start, offset - start);
net\System\Net\mail\SmtpDateTime.cs (4)
240if (!Int32.TryParse(offset.Substring(1, 2), NumberStyles.None, 246if (!Int32.TryParse(offset.Substring(3, 2), NumberStyles.None, 320string date = data.Substring(0, indexOfTimeZoneSeparator).Trim(); 343timeZoneString = timeZoneString.Substring(0, endOfTimeZoneOffset);
net\System\Net\WebHeaderCollection.cs (1)
659string name = header.Substring(0, colpos);
net\System\Net\WebRequest.cs (1)
390cookedUri = cookedUri.Substring(0, cookedUri.Length - 1);
net\System\Net\WebUtility.cs (1)
190string entity = value.Substring(i + 1, index - i - 1);
net\System\URI.cs (41)
574string scheme = relativeStr.Substring(0, i); 911pathSegments.Add(path.Substring(current, (next - current) + 1)); 1054? m_String.Substring(start + 1, m_Info.Offset.Query - start - 1) 1055: m_String.Substring(start, m_Info.Offset.Query - start); 1273ret = ret.Substring(1, ret.Length - 2); 2165m_String = m_String.Substring(0, idx); 2180m_String = m_String.Substring(0, idx); 2249m_String += m_originalUnicodeString.Substring(idx, m_originalUnicodeString.Length - idx); 2592host = str.Substring(idx, end-idx); 3076return m_String.Substring(m_Info.Offset.Scheme, m_Info.Offset.Path - m_Info.Offset.Scheme); 3078return m_String.Substring(m_Info.Offset.Scheme, m_Info.Offset.User - m_Info.Offset.Scheme) 3079+ m_String.Substring(m_Info.Offset.Host, m_Info.Offset.Path - m_Info.Offset.Host); 3088return m_String.Substring(m_Info.Offset.Host, m_Info.Offset.Path - m_Info.Offset.Host); 3090return m_String.Substring(m_Info.Offset.Host, m_Info.Offset.Path - m_Info.Offset.Host) 3098return m_String.Substring(m_Info.Offset.Scheme, m_Info.Offset.End - m_Info.Offset.Scheme); 3103return m_String.Substring(m_Info.Offset.Scheme, m_Info.Offset.User - m_Info.Offset.Scheme) 3104+ m_String.Substring(m_Info.Offset.Host, m_Info.Offset.Fragment - m_Info.Offset.Host); 3109return m_String.Substring(m_Info.Offset.Scheme, m_Info.Offset.Fragment - m_Info.Offset.Scheme); 3113return m_String.Substring(m_Info.Offset.Scheme, m_Info.Offset.Path - m_Info.Offset.Scheme); 3120return m_String.Substring(m_Info.Offset.Scheme, m_Info.Offset.Fragment - m_Info.Offset.Scheme); 3126return m_String.Substring(m_Info.Offset.Scheme, m_Info.Offset.User - m_Info.Offset.Scheme); 3138return (idx - m_Info.Offset.Host == 0)? string.Empty: m_String.Substring(m_Info.Offset.Host, 3154return m_String.Substring(delimiterAwareIdx, m_Info.Offset.Query - delimiterAwareIdx); 3166return m_String.Substring(delimiterAwareIdx, m_Info.Offset.Fragment - delimiterAwareIdx); 3178return m_String.Substring(delimiterAwareIdx, m_Info.Offset.End - delimiterAwareIdx); 3182m_String.Substring(m_Info.Offset.User, m_Info.Offset.Path - m_Info.Offset.User); 3188return m_String.Substring(m_Info.Offset.User, m_Info.Offset.Path - m_Info.Offset.User) 3192return m_String.Substring(m_Info.Offset.Path, m_Info.Offset.Fragment - m_Info.Offset.Path); 3196return m_String.Substring(m_Info.Offset.Scheme, m_Info.Offset.User - m_Info.Offset.Scheme) 3197+ m_String.Substring(m_Info.Offset.Host, m_Info.Offset.End - m_Info.Offset.Host); 3202return m_String.Substring(m_Info.Offset.Scheme, m_Info.Offset.End - m_Info.Offset.Scheme); 3205return m_String.Substring(m_Info.Offset.Path, m_Info.Offset.End - m_Info.Offset.Path); 3221return m_String.Substring(m_Info.Offset.User, delimiterAwareIdx - m_Info.Offset.User); 3921newHost = m_originalUnicodeString.Substring(0, startInput); 4066newHost = m_originalUnicodeString.Substring(0, startInput) + userInfoString + idnValue; 4291newHost = m_originalUnicodeString.Substring(0, startInput) + 4299newHost = m_originalUnicodeString.Substring(0, startInput) + 4355newHost = m_originalUnicodeString.Substring(0, startInput); 5014return basePart.OriginalString.Substring(0, idx+1 ) + relativePart; 5018return basePart.OriginalString.Substring(0, idx+1 ) + relativePart; 5040share = share.Substring(0, i);
net\System\uribuilder.cs (4)
85m_username = userInfo.Substring(0, index); 162Query = value.Substring(1, end-1); 299value = value.Substring(0, index); 395m_username = userInfo.Substring(0, index);
regex\system\text\regularexpressions\RegexCapture.cs (3)
65return _text.Substring(_index, _length); 93return _text.Substring(0, _index); 100return _text.Substring(_index + _length, _text.Length - _index - _length);
regex\system\text\regularexpressions\RegexCharClass.cs (1)
1031return new RegexCharClass(charClass[start+FLAGS] == 1, ranges, new StringBuilder(charClass.Substring(end, myCategoryLength)), sub);
regex\system\text\regularexpressions\RegexMatch.cs (1)
182return _text.Substring(matches[(c - 1) * 2], matches[(c * 2) - 1]);
regex\system\text\regularexpressions\RegexParser.cs (3)
1218return _pattern.Substring(startpos, Textpos() - startpos); 1440String capname = _pattern.Substring(startpos, Textpos() - startpos); 1879String str = _pattern.Substring(pos, cch);
regex\system\text\regularexpressions\RegexReplacement.cs (6)
228al.Add(input.Substring(match.Index + match.Length, prevat - match.Index - match.Length)); 310al.Add(input.Substring(match.Index + match.Length, prevat - match.Index - match.Length)); 372al.Add(input.Substring(prevat, match.Index - prevat)); 391al.Add(input.Substring(prevat, input.Length - prevat)); 397al.Add(input.Substring(match.Index + match.Length, prevat - match.Index - match.Length)); 416al.Add(input.Substring(0, prevat));
security\system\security\Authentication\ExtendedProtection\ServiceNameCollection.cs (3)
108string prefix = inputServiceName.Substring(0, shashIndex + 1); // Includes slash 131hostAndPort = hostPortAndDistinguisher.Substring(0, nextSlashIndex); // Excludes Slash 143host = hostAndPort.Substring(0, colonIndex); // Excludes colon
services\monitoring\system\diagnosticts\EventLog.cs (5)
466string logNameFirst8 = logName.Substring(0,8); 841string logNameFirst8 = logName.Substring(0, 8); 847string.Compare(currentLogName.Substring(0, 8), logNameFirst8, StringComparison.OrdinalIgnoreCase) == 0) 1188filename = @"%SystemRoot%\System32\config\" + logName.Substring(0,8) + ".evt"; 1336msg = msg.Substring(0, msg.Length-2);
services\monitoring\system\diagnosticts\EventLogEntry.cs (1)
447UInt32.TryParse( msg.Substring(percentIdx + 1, lasNumIdx - percentIdx - 1), out paramMsgID);
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (1)
1566instanceName = instanceName.Substring(0, SharedPerformanceCounter.InstanceNameMaxLength);
services\monitoring\system\diagnosticts\ProcessManager.cs (7)
853if (instanceName.EndsWith(".", StringComparison.Ordinal )) processName = instanceName.Substring(0, 14); 854else if (instanceName.EndsWith(".e", StringComparison.Ordinal )) processName = instanceName.Substring(0, 13); 855else if (instanceName.EndsWith(".ex", StringComparison.Ordinal)) processName = instanceName.Substring(0, 12); 1189processName = processName.Substring(0, 14); 1192processName = processName.Substring(0, 13); 1195processName = processName.Substring(0, 12); 1277return name.Substring(slash, period - slash + 1);
System.Activities (14)
System\Activities\ActivityUtilities.cs (1)
497displayName = displayName.Substring(0, tickIndex);
System\Activities\Debugger\DebugInfo.cs (3)
399value = value.Substring(0, value.Length - 1); // remove the suffix 469stringValue = stringValue.Substring(0, stringValue.Length - 1); 518stringValue = stringValue.Substring(0, endIndex);
System\Activities\Debugger\State.cs (2)
146result = result.Substring(0, 255); 217newFileName = newFileName.Substring(0, 255);
System\Activities\Validation\ActivityValidationServices.cs (1)
274exceptionString = exceptionString.Substring(0, maxExceptionStringSize - snipNotification.Length);
System\Activities\XamlIntegration\ActivityBuilderXamlWriter.cs (2)
482xClassName = string.Format(CultureInfo.CurrentCulture, "_{0}", Guid.NewGuid().ToString().Replace("-", string.Empty).Substring(0, 4)); 498this.xClassNamespace = builderName.Substring(0, nameStartIndex);
System\Activities\XamlIntegration\ActivityWithResultConverter.cs (2)
126string expressionText = text.Substring(1, text.Length - 2); 153text = text.Substring(1, text.Length - 1);
System\Activities\XamlIntegration\ActivityXamlServices.cs (1)
385string activityNamespace = lastIndexOfDot > 0 ? dynamicActivity.Name.Substring(0, lastIndexOfDot) : null;
System\Activities\XamlIntegration\DynamicActivityXamlReader.cs (2)
445xClassNamespace = fullName.Substring(0, nameStartIndex); 593string @namespace = clrNamespace.Substring(0, lastIndex);
System.Activities.Core.Presentation (1)
System\ServiceModel\Activities\Presentation\ServiceContractImporter.cs (1)
186string faultName = faultReply.DisplayName.Substring(0, faultReply.DisplayName.Length - SendFaultReply.Length);
System.Activities.Presentation (17)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\TypeNameHelper.cs (1)
62name = name.Substring(0, start) + name.Substring(end + 2);
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\DesignTimeXamlWriter.cs (1)
93nonassemblyQualifedNamespace = nonassemblyQualifedNamespace.Substring(0, nonassemblyQualifedNamespace.Length - 1);
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ViewStateIdManager.cs (2)
27idParts[0] = id.Substring(0, separatorLocation); 28idParts[1] = id.Substring(separatorLocation + 1, id.Length - (separatorLocation + 1));
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\WorkflowDesignerXamlSchemaContext.cs (1)
229return string.IsNullOrEmpty(this.localAssemblyNsPostfix) ? ns : ns.Substring(0, ns.Length - this.localAssemblyNsPostfix.Length);
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\XamlNamespaceHelper.cs (1)
29clrNamespace = xamlNamespace.Substring(clrNsIndex, assemblyIndex - clrNsIndex);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\GenericTypeParameterConverter.cs (2)
116strBldr.Append(resultType.FullName.Substring(0, resultType.FullName.IndexOf('`'))); 120strBldr.Append(resultType.Name.Substring(0, resultType.Name.IndexOf('`')));
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\manifestimages.cs (1)
185return resourceName.Substring(0, dotIconIndex);
System.Activities.Presentation\System\Activities\Presentation\ExpressionHelper.cs (1)
122var valueToConvert = isQuotedString ? expressionText.Substring(1, expressionText.Length - 2) : expressionText;
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (2)
394string collectionProperty = segment.Substring(0, indexOfSquareBrackets); 403indexString = indexString.Substring(0, indexString.Length - 1);
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxItemLoader.cs (1)
70string categoryName = entry.Substring(1, entry.Length - 2);
System.Activities.Presentation\System\Activities\Presentation\View\BreadCrumbTextConverter.cs (1)
63breadCrumbText = breadCrumbText.Substring(0, actualDisplayNameLength - 3) + "...";
System.Activities.Presentation\System\Activities\Presentation\View\ParserContext.cs (2)
173string clrNamespace = nameSpace.Substring(startIndex + 1, endIndex - startIndex - 1); 229prefix = string.Format(CultureInfo.InvariantCulture, "__{0}", Guid.NewGuid().ToString().Replace("-", "").Substring(0, 5));
System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (1)
215this.GenericTypeName = strName.Substring(0, strName.Length - 2) + " <";
System.AddIn (3)
System\Addin\Hosting\AddInStore.cs (1)
1270nameSpace = fullTypeName.Substring(0, i);
System\Addin\Hosting\InspectionWorker.cs (1)
72String simpleName = assemblyRef.Substring(0, assemblyRef.IndexOf(','));
System\Addin\Hosting\Utils.cs (1)
222String simpleName = assemblyRef.Substring(0, firstComma);
System.ComponentModel.DataAnnotations (3)
DataAnnotations\PhoneAttribute.cs (3)
95return potentialPhoneNumber.Substring(0, lastIndexOfExtension); 104return potentialPhoneNumber.Substring(0, lastIndexOfExtension); 114return potentialPhoneNumber.Substring(0, lastIndexOfExtension);
System.Configuration (7)
System\Configuration\BaseConfigurationRecord.cs (1)
2725group = configKey.Substring(0, lastSlash);
System\Configuration\ClientConfigPaths.cs (2)
562_companyName = ns.Substring(0, firstDot); 652validated = (validated.Length > MAX_LENGTH_TO_USE) ? validated.Substring(0, MAX_LENGTH_TO_USE) : validated;
System\Configuration\ClientConfigurationHost.cs (1)
302string parentUri = streamName.Substring(0, index + 1);
System\Configuration\StringAttributeCollection.cs (1)
62returnString = returnString.Substring(0, returnString.Length - 1);
System\Configuration\XmlUtil.cs (2)
938startElement = formattedElement.Substring(0, iEndElement); 942startElement = formattedElement.Substring(0, iEndElement - 2);
System.Core (8)
System\Diagnostics\EventSchemaTraceListener.cs (8)
448_InternalBuildRaw(writer, str.Substring(lastIndex, i-lastIndex)); 453_InternalBuildRaw(writer, str.Substring(lastIndex, i-lastIndex)); 458_InternalBuildRaw(writer, str.Substring(lastIndex, i-lastIndex)); 463_InternalBuildRaw(writer, str.Substring(lastIndex, i-lastIndex)); 468_InternalBuildRaw(writer, str.Substring(lastIndex, i-lastIndex)); 473_InternalBuildRaw(writer, str.Substring(lastIndex, i-lastIndex)); 478_InternalBuildRaw(writer, str.Substring(lastIndex, i-lastIndex)); 484_InternalBuildRaw(writer, str.Substring(lastIndex, str.Length-lastIndex));
System.Data (48)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\TypeNameHelper.cs (1)
62name = name.Substring(0, start) + name.Substring(end + 2);
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\DesignTimeXamlWriter.cs (1)
93nonassemblyQualifedNamespace = nonassemblyQualifedNamespace.Substring(0, nonassemblyQualifedNamespace.Length - 1);
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ViewStateIdManager.cs (2)
27idParts[0] = id.Substring(0, separatorLocation); 28idParts[1] = id.Substring(separatorLocation + 1, id.Length - (separatorLocation + 1));
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\WorkflowDesignerXamlSchemaContext.cs (1)
229return string.IsNullOrEmpty(this.localAssemblyNsPostfix) ? ns : ns.Substring(0, ns.Length - this.localAssemblyNsPostfix.Length);
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\XamlNamespaceHelper.cs (1)
29clrNamespace = xamlNamespace.Substring(clrNsIndex, assemblyIndex - clrNsIndex);
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\VisualStudio\Activities\WorkflowDesignerExtensionManager.cs (1)
196string assemblyName = args.Name.Substring(0, args.Name.IndexOf(",", StringComparison.Ordinal));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\GenericTypeParameterConverter.cs (2)
116strBldr.Append(resultType.FullName.Substring(0, resultType.FullName.IndexOf('`'))); 120strBldr.Append(resultType.Name.Substring(0, resultType.Name.IndexOf('`')));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\manifestimages.cs (1)
185return resourceName.Substring(0, dotIconIndex);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ExpressionHelper.cs (1)
122var valueToConvert = isQuotedString ? expressionText.Substring(1, expressionText.Length - 2) : expressionText;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (2)
394string collectionProperty = segment.Substring(0, indexOfSquareBrackets); 403indexString = indexString.Substring(0, indexString.Length - 1);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxItemLoader.cs (1)
70string categoryName = entry.Substring(1, entry.Length - 2);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\BreadCrumbTextConverter.cs (1)
63breadCrumbText = breadCrumbText.Substring(0, actualDisplayNameLength - 3) + "...";
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ParserContext.cs (2)
173string clrNamespace = nameSpace.Substring(startIndex + 1, endIndex - startIndex - 1); 229prefix = string.Format(CultureInfo.InvariantCulture, "__{0}", Guid.NewGuid().ToString().Replace("-", "").Substring(0, 5));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (1)
215this.GenericTypeName = strName.Substring(0, strName.Length - 2) + " <";
fx\src\data\Microsoft\SqlServer\Server\MemoryRecordBuffer.cs (1)
168_buffer[ordinal].String = value.Substring(offset, length); // Perf test shows that Substring method has already optimized the case where length = value.Length
fx\src\data\System\Data\Common\AdapterUtil.cs (4)
2320unquotedString = quotedString.Substring(prefixLength,quotedStringLength - (prefixLength + suffixLength)).Replace(quoteSuffix+quoteSuffix,quoteSuffix); 2323unquotedString = quotedString.Substring(prefixLength,quotedStringLength - prefixLength); 2550dataSource = dataSource.Substring(0, i); 2557dataSource = dataSource.Substring(0, i);
fx\src\data\System\Data\Common\DBCommandBuilder.cs (1)
1528qualifiers[parts] = name.Substring(startPos, currentPos-startPos);
fx\src\data\System\Data\DataTable.cs (5)
3378current = current.Substring(0, length - 4).Trim(); 3382current = current.Substring(0, length - 5).Trim(); 3388current = current.Substring(1, current.Length - 2); 5752CurrentTableNamespace = CurrentTableFullName.Substring(0, nsSeperator); 5754string CurrentTableName = CurrentTableFullName.Substring(nsSeperator + 1, CurrentTableFullName.Length - nsSeperator -1);
fx\src\data\System\Data\Filter\FunctionNode.cs (1)
396return((string)argumentValues[0]).Substring(start, length);
fx\src\data\System\Data\Odbc\OdbcConnection.cs (1)
214ProviderInfo.IsV3Driver = (int.Parse(ProviderInfo.DriverVersion.Substring(0,2), CultureInfo.InvariantCulture) >= 3);
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (1)
2519str = str.Substring(1, str.Length-2);
fx\src\data\System\Data\OleDb\oledbconnectionstring.cs (1)
118_expandedConnectionString = _expandedConnectionString.Substring(0, position) + udlConnectionString + ';' + _expandedConnectionString.Substring(position);
fx\src\data\System\Data\ProviderBase\DbConnectionPoolCounters.cs (2)
263result.Substring(0, firstPartLength), 265result.Substring(result.Length - lastPartLength, lastPartLength));
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (1)
1262name = name.Substring(1, l - 2);
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCngProvider.cs (2)
423cngProvider = keyPath.Substring(0, indexOfSlash); 424keyIdentifier = keyPath.Substring(indexOfSlash + 1, keyPath.Length - (indexOfSlash + 1));
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCspProvider.cs (2)
449cspProviderName = keyPath.Substring(0, indexOfSlash); 450keyIdentifier = keyPath.Substring(indexOfSlash + 1, keyPath.Length - (indexOfSlash + 1));
fx\src\data\System\Data\SqlClient\SqlCommand.cs (2)
2622part = part.Substring(1, part.Length-2); // strip outer '[' & ']' 2645sproc = sproc.Substring(0, semicolon);
fx\src\data\System\Data\SqlClient\SqlConnectionString.cs (1)
773if ((separatorPos <= 0) || !CompareHostName(ref host, name.Substring(0, separatorPos), fixup)) {
fx\src\data\System\Data\SqlClient\SqlDependencyListener.cs (1)
533string appDomainKey = key.Substring(0, index);
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
1410errorMessage = errorMessage.Substring(iColon, len);
fx\src\data\System\Data\SqlClient\TdsParserStaticMethods.cs (2)
63string parsedProtocol = aliasLookup.Substring(0, index).ToLower(CultureInfo.InvariantCulture); 73parsedProtocol = parsedAliasName.Substring (0, index);
fx\src\data\System\Data\XMLSchema.cs (1)
2399prefix = QualifiedTableName.Substring(0, QualifiedTableName.IndexOf(':'));
System.Data.Entity (19)
System\Data\Common\EntitySql\AST\Literal.cs (2)
261string numberPart = numericString.Substring(0, numericString.Length - suffix.Length); 422result = stringLiteralValue.Substring(startIndex, stringLiteralValue.Length - (1 + startIndex));
System\Data\Common\EntitySql\CqlLexerHelpers.cs (2)
353string name = symbol.Substring(1, symbol.Length - 2); 710string literalPayload = literal.Substring(startIndex + 1, literal.Length - (startIndex + 2));
System\Data\Common\EntitySql\TypeResolver.cs (1)
455var namespaceName = name.Substring(0, name.Length - functionName.Length - 1);
System\Data\EntityModel\SchemaObjectModel\ScalarType.cs (1)
307bytes[iByte] = byte.Parse(text.Substring(index, inc), System.Globalization.NumberStyles.HexNumber, System.Globalization.CultureInfo.InvariantCulture);
System\Data\EntityModel\SchemaObjectModel\Utils.cs (2)
69before = qualifiedTypeName.Substring(0, lastDot); 78return qualifiedTypeName.Substring(0, lastDot);
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (1)
498string entityContainerName = extentFullName.Substring(0, extentNameIndex);
System\Data\Mapping\StorageMappingItemLoader.cs (5)
957entityTypeName = entityTypeName.Substring(0, entityTypeName.Length - StorageMslConstructs.IsTypeOfTerminal.Length).Trim(); 3032currentTypeName = typeName.Substring(0, index); 3033typeName = typeName.Substring(index + 1, (typeName.Length - (index + 1))); 3044currentTypeName = currentTypeName.Substring(StorageMslConstructs.IsTypeOf.Length, (currentTypeName.Length - (StorageMslConstructs.IsTypeOf.Length + 1))); 3524string aliasKey = aliasedString.Substring(0, aliasIndex);
System\Data\Metadata\MetadataCache.cs (1)
154dataDirPaths.Add(paths.Substring(macroPathBeginIndex, indexEnd - macroPathBeginIndex));
System\Data\Objects\Internal\EntityProxyFactory.cs (1)
714string baseName = BaseType.Name.Length <= 20 ? BaseType.Name : BaseType.Name.Substring(0, 20);
System\Data\SqlClient\SqlProviderServices.cs (1)
850strippedFileName = strippedFileName.Length > 30 ? strippedFileName.Substring(0, 30) : strippedFileName;
System\Data\SqlClient\SqlProviderUtilities.cs (1)
370AppendIdentifier(typeName.Substring(0, typeName.Length - maxSuffix.Length));
System\Data\SqlClient\SqlVersion.cs (1)
54int majorVersion = Int32.Parse(connection.ServerVersion.Substring(0, 2), CultureInfo.InvariantCulture);
System.Data.Entity.Design (13)
System\Data\Entity\Design\Common\MetadataUtil.cs (2)
230xmlNamespaceUri = name.Substring(0, pos); 231attributeName = name.Substring(pos + 1, (name.Length - 1) - pos);
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (3)
710_namespaceName = CreateValildModelNamespaceName(targetSchemaNamespace.Substring(0, index) + NAMESPACE_NAME_SUFFIX); 726_modelEntityContainerName = CreateModelName(targetSchemaNamespace.Substring(0, dotIndex) + ENTITY_CONTAINER_NAME_SUFFIX); 736_modelEntityContainerName = CreateModelName(targetSchemaNamespace.Substring(0, targetIndex) + ENTITY_CONTAINER_NAME_SUFFIX);
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (1)
595yield return largeViewString.Substring(i * ONELINELENGTH, ONELINELENGTH);
System\Data\Entity\Design\PluralizationService\EnglishPluralizationService.cs (1)
835prefixWord = word.Substring(0, lastSpaceIndex + 1);
System\Data\EntityModel\Emitters\CommentEmitter.cs (2)
206text = text.Substring(start, last - start + 1); 265leadingBlanks = leadingBlanks.Substring(0, j);
System\Data\EntityModel\Emitters\FixUpCollection.cs (4)
340className = line.Substring(index,end-index); 400line = line.Substring(0, parIdx1).TrimEnd(null); 681name = line.Substring(index, end-index).Trim(); 686name = name.Substring(1, name.Length - 2);
System.Data.Linq (12)
Mapping\MappedMetaModel.cs (1)
248typeName = name.Substring(0, dotIndex);
SqlClient\Common\InheritanceRules.cs (1)
76s = s.PadRight(providerType.Size.Value).Substring(0,providerType.Size.Value);
SqlClient\Query\SqlIdentifier.cs (6)
60string left = s.Substring(0, splitPosition); 61string right = s.Substring(splitPosition + 1, s.Length - splitPosition - 1); 73string left = s.Substring(0, splitPosition); 77string right = s.Substring(splitPosition + 1, s.Length - splitPosition - 1); 86string left = s.Substring(0, splitPosition); 87string right = s.Substring(splitPosition + 1, s.Length - splitPosition - 1);
SqlClient\SqlTypeSystemProvider.cs (4)
837typeName = stype.Substring(0, end); 844param1 = stype.Substring(start, end - start); 847param2 = stype.Substring(start, end - start); 851param1 = stype.Substring(start, end - start);
System.Data.Services (27)
parent\Client\System\Data\Services\Client\BatchStream.cs (4)
485delimiter = delimiter.Substring(0, delimiter.Length - 2); 1324string name = line.Substring(0, colon).Trim(); 1367string segment1 = line.Substring(0, index1); // Request - Http method, Response - Http version 1368string segment2 = line.Substring(index1 + 1, index2 - index1 - 1); // Request - Request uri, Response - Http status code
System\Data\Services\Epm\EpmContentDeSerializer.cs (1)
152e.PropertyPath.Length <= propertyPath.Length && e.PropertyPath == propertyPath.Substring(0, e.PropertyPath.Length)));
System\Data\Services\HttpProcessUtility.cs (6)
361versionText = text.Substring(0, separator); 485type = text.Substring(textStart, textIndex - textStart); 496subType = text.Substring(subTypeStart, textIndex - subTypeStart); 686string parameterName = text.Substring(startIndex, textIndex - startIndex); 925yield return new CharsetPart(headerValue.Substring(headerStart, headerNameEnd - headerStart), qualityValue); 1051string candidateType = candidate.Substring(0, separatorIdx);
System\Data\Services\Parsing\ExpressionLexer.cs (3)
156string currentIdentifier = this.text.Substring(tokenPos + 1, this.textPos - tokenPos - 1); 240this.token.Text = this.text.Substring(tokenPos, this.textPos - tokenPos); 456this.token.Text = this.text.Substring(tokenPos, this.textPos - tokenPos);
System\Data\Services\Parsing\WebConvert.cs (3)
211string s = text.Substring(1, text.Length - 2); 587string s = text.Substring(1, text.Length - 2); 774text = text.Substring(0, text.Length - suffix.Length);
System\Data\Services\Providers\ObjectContextServiceProvider.cs (3)
1628string xmlNamespace = metadataProperty.Name.Substring(0, index); 1680return "[" + qualifiedEntitySetName.Substring(0, indexOfLastPeriod) + "].[" + qualifiedEntitySetName.Substring(indexOfLastPeriod + 1) + "]"; 2298entityContainerName = qualifiedEntitySetName.Substring(0, index);
System\Data\Services\Providers\ResourceType.cs (1)
1163String propertyToLookFor = indexOfSeparator == -1 ? epmAttr.SourcePath : epmAttr.SourcePath.Substring(0, indexOfSeparator);
System\Data\Services\RequestUriProcessor.cs (5)
243reference = reference.Substring(1, reference.Length - 1); 300resultBuilder.Path = resultBuilder.Path.Substring(0, resultBuilder.Path.Length - 2); 353segment = segment.Substring(0, segment.Length - 1); 980identifier = segment.Substring(0, filterStart); 1103return filter.Substring(1, filter.Length - 2);
System\Data\Services\UpdatableWrapper.cs (1)
344string strippedETag = ifMatchHeaderValue.Substring(XmlConstants.HttpWeakETagPrefix.Length, ifMatchHeaderValue.Length - XmlConstants.HttpWeakETagPrefix.Length - 1);
System.Data.Services.Client (8)
parent\Server\System\Data\Services\HttpProcessUtility.cs (4)
361versionText = text.Substring(0, separator); 485type = text.Substring(textStart, textIndex - textStart); 496subType = text.Substring(subTypeStart, textIndex - subTypeStart); 686string parameterName = text.Substring(startIndex, textIndex - startIndex);
System\Data\Services\Client\BatchStream.cs (4)
485delimiter = delimiter.Substring(0, delimiter.Length - 2); 1324string name = line.Substring(0, colon).Trim(); 1367string segment1 = line.Substring(0, index1); // Request - Http method, Response - Http version 1368string segment2 = line.Substring(index1 + 1, index2 - index1 - 1); // Request - Request uri, Response - Http status code
System.Data.Services.Design (6)
System\Data\EntityModel\Emitters\CommentEmitter.cs (2)
201text = text.Substring(start, last - start + 1); 262leadingBlanks = leadingBlanks.Substring(0, j);
System\Data\EntityModel\Emitters\FixUpCollection.cs (4)
336className = line.Substring(index,end-index); 396line = line.Substring(0, parIdx1).TrimEnd(null); 677name = line.Substring(index, end-index).Trim(); 682name = name.Substring(1, name.Length - 2);
System.Data.SqlXml (13)
System\Xml\Xsl\QIL\QilReference.cs (1)
46value = value.Substring(0, MaxDebugNameLength);
System\Xml\Xsl\QIL\QilXmlReader.cs (1)
446uri = name.Substring(1, idx - 1);
System\Xml\Xsl\Runtime\XsltFunctions.cs (3)
49return (idx < 1) ? string.Empty : s1.Substring(0, idx); 85return value.Substring((int)startIndex, (int)(endIndex - startIndex)); 482string prefix = name.Substring(0, colonOffset);
System\Xml\Xsl\XPath\XPathScanner.cs (3)
143return xpathExpr.Substring(lexStart, curIndex - lexStart); 450this.stringValue = xpathExpr.Substring(startIdx, endIdx - startIdx); 475return xpathExpr.Substring(start, curIndex - start);
System\Xml\Xsl\Xslt\QilGenerator.cs (1)
869return i > start ? f.String(source.Substring(start, i - start)) : null;
System\Xml\Xsl\XsltOld\ContainerAction.cs (1)
401if (! PrefixQName.ValidatePrefix(name.Substring(0, idx))) {
System\Xml\Xsl\XsltOld\NumberAction.cs (1)
626formatInfo.formatString = formatString.Substring(count, length - count);
System\Xml\Xsl\XsltOld\PrefixQname.cs (2)
41local = qname.Substring(0, position); 53local = qname.Substring(startLocalNamePos, len);
System.Drawing (15)
commonui\System\Drawing\Advanced\ColorTranslator.cs (3)
240c = Color.FromArgb(Convert.ToInt32(htmlColor.Substring(1, 2), 16), 241Convert.ToInt32(htmlColor.Substring(3, 2), 16), 242Convert.ToInt32(htmlColor.Substring(5, 2), 16));
commonui\System\Drawing\ColorConverter.cs (1)
160string colorName = text.Substring(1, text.Length - 2);
commonui\System\Drawing\FontConverter.cs (6)
110name = text.Substring(0, nameIndex); 118styleStr = text.Substring(styleIndex, text.Length - styleIndex); 126sizeStr = text.Substring(nameIndex + 1, styleIndex - nameIndex - 1); 129sizeStr = text.Substring(nameIndex + 1, text.Length - nameIndex - 1); 151styleStr = styleStr.Substring(eqIndex + 1, styleStr.Length - styleHdr.Length); 474size = text.Substring(0, splitPoint);
commonui\System\Drawing\Printing\PrinterSettings.cs (2)
1206name = name.Substring(0, index); 1247name = name.Substring(0, index);
misc\DbgUtil.cs (2)
344fileName = fileName.Substring( backSlashIndex + 1, fileName.Length - backSlashIndex - 1); 354args = args.Substring(0, args.Length - 2);
misc\DebugHandleTracker.cs (1)
434string line = releventStack.Substring(startIndex, endIndex - startIndex);
System.IdentityModel (19)
System\IdentityModel\Claims\X509CertificateClaimSet.cs (2)
424Identifier = x509ExtensionFormattedString.Substring(0, delimiterIndex); 440Separator = x509ExtensionFormattedString.Substring(separatorFirstChar, separatorLength);
System\IdentityModel\Metadata\MetadataSerializer.cs (1)
747string prefix = xsiType.Substring(0, index);
System\IdentityModel\Tokens\EncryptedSecurityTokenHandler.cs (1)
251Debug.WriteLine(text.Substring(0, 40));
System\IdentityModel\Tokens\Saml2Attribute.cs (1)
165string prefix = value.Substring(0, indexOfHash);
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (2)
3058string localPrefix = attributeValueXsiTypeSuffixWithLocalPrefix.Substring(0, attributeValueXsiTypeSuffixWithLocalPrefix.IndexOf(":", StringComparison.Ordinal)); 3229xsiTypePrefix = data.AttributeValueXsiType.Substring(0, indexOfHash);
System\IdentityModel\Tokens\SamlAttribute.cs (3)
76this.nameSpace = StringUtil.OptimizeString(claim.ClaimType.Substring(0, lastSlashIndex)); 77this.name = StringUtil.OptimizeString(claim.ClaimType.Substring(lastSlashIndex + 1, claim.ClaimType.Length - (lastSlashIndex + 1))); 154string prefix = value.Substring(0, indexOfHash);
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (4)
684attributeNamespace = claim.Type.Substring(0, lastSlashIndex); 709attributeName = claim.Type.Substring(lastSlashIndex + 1, claim.Type.Length - (lastSlashIndex + 1)); 2654string localPrefix = attributeValueXsiTypeSuffixWithLocalPrefix.Substring(0, attributeValueXsiTypeSuffixWithLocalPrefix.IndexOf(":", StringComparison.Ordinal)); 2793xsiTypePrefix = SamlAttribute.AttributeValueXsiType.Substring(0, indexOfHash);
System\IdentityModel\Tokens\SessionSecurityToken.cs (1)
1016string shortDomainName = windowsLogonName.Substring(0, delimiterPos + 1);
System\IdentityModel\XmlUtil.cs (4)
63return s.Substring(0, i); 97return s.Substring(i, j - i); 165prefix = qstring.Substring(0, colon); 166name = qstring.Substring(colon + 1, qstring.Length - (colon + 1));
System.Management (30)
Instrumentation\ManagementInstaller.cs (1)
150if(String.Compare(mofFile.Substring(mofFile.Length-4,4),".mof",StringComparison.OrdinalIgnoreCase)!=0)
ManagementDatetime.cs (18)
146 tempString = dmtf.Substring(0, 4); 151 tempString = dmtf.Substring(4, 2); 156 tempString = dmtf.Substring(6, 2); 161 tempString = dmtf.Substring(8, 2); 166 tempString = dmtf.Substring(10, 2); 171 tempString = dmtf.Substring(12, 2); 176 tempString = dmtf.Substring(15, 6); 205 string tempString1 = dmtf.Substring(22, 3); 209 tempString1 = dmtf.Substring(21, 4); 280 UtcString = "-" + strTemp.Substring(1, strTemp.Length-1).PadLeft(3,'0'); 301 strMicrosec = strMicrosec.Substring(0,6); 355 if(dmtfts.Substring(21,4) != ":000") 365 tempString = dmtfts.Substring(0, 8); 368 tempString = dmtfts.Substring(8, 2); 371 tempString = dmtfts.Substring(10, 2); 374 tempString = dmtfts.Substring(12, 2); 377 tempString = dmtfts.Substring(15, 6); 456 strMicrosec = strMicrosec.Substring(0,6);
managementquery.cs (8)
145 tokenValue = q.Substring (0, i); 991 tempProp = q.Substring(0, i); 1001 tempProp = q.Substring(0, i); 1677 tempSourceObject = q.Substring(0, i).TrimEnd(null); 2192 tempSourceObject = q.Substring(0, i).TrimEnd(null); 3058 w = q.Substring(0, i).Trim(); 3080 tempProp = q.Substring(0, i); 3090 tempProp = q.Substring(0, i);
WmiGenerator.cs (3)
862string strFirstChar = strTemp.Substring(0,1).ToUpper(CultureInfo.InvariantCulture); 863strTemp = strFirstChar + strTemp.Substring(1,strTemp.Length -1); 893strClass = OriginalClassName.Substring(0,OriginalClassName.IndexOf('_'));
System.Messaging (3)
System\Messaging\MessageQueue.cs (3)
822return queuePath.Substring(0, queuePath.IndexOf('\\')); 3314string machine = queuePath.Substring(0, queuePath.IndexOf('\\')); 3353realPath = realPath.Substring(0, lastIndex);
System.Net (7)
net\PeerToPeer\Collaboration\CollaborationHelperFunctions.cs (3)
68newGuid.data1 = (uint)(Convert.ToUInt32(guidString.Substring(startVal, endVal - startVal), 16)); 71newGuid.data2 = (ushort)(Convert.ToUInt16(guidString.Substring(startVal, endVal - startVal), 16)); 74newGuid.data3 = (ushort)(Convert.ToUInt16(guidString.Substring(startVal, endVal - startVal), 16));
net\PeerToPeer\PeerName.cs (4)
469tempAuthority = peerName.Substring(0, peerName.Length - 1); 476tempAuthority = peerName.Substring(0, IndexOfPeriod); 536authority = peerName.Substring(0, peerName.Length - 1); 540authority = peerName.Substring(0, indexOfPeriod);
System.Runtime.Remoting (26)
channels\http\httpchannelhelper.cs (4)
72String channelURI = url.Substring(0, separator); 131return CoreChannel.RemoveApplicationNameFromUri(uri.Substring(start, end - start)); 162String key = part.Substring(0, index).Trim(); 214String newUrl = url.Substring(0, index) + newMachineName + url.Substring(colonIndex);
channels\http\httpclientchannel.cs (1)
469_channelURI = _channelURI.Substring(0, _channelURI.Length - 1);
channels\http\httpremotinghandler.cs (1)
247requestUri = requestUri.Substring(0, index);
channels\http\httpsocketmanager.cs (1)
63String headerName = header.Substring(0,sep);
channels\ipc\ipcchannelhelper.cs (1)
63String channelURI = url.Substring(0, separator);
channels\tcp\tcpchannelhelper.cs (1)
53String channelURI = url.Substring(0, separator);
metadata\metadata.cs (1)
150stfilename = assemblyPath.Substring(0,index+1)+stfilename;
metadata\sdlchannelsink.cs (1)
242hostName = hostName.Substring(0, index);
metadata\wsdlparser.cs (12)
744String protocol = location.Substring(0, index).ToLower(CultureInfo.InvariantCulture); 1667name = binding.name.Substring(0,index); 1952String newOpName = opSec.name.Substring(0, index); 2250String prefix = qname.Substring(0, colonIndex); 2552identifier = identifier.Substring(0,index); 2642stype = xsdType.Substring(0, index); 2756fileName = fileName.Substring(0,index); 2869type = type.Substring(0,index); 3271diskFileName = diskFileName.Substring(0, diskFileName.Length - 4); 3954String iface = name.Substring(0,index); 5517String outerType = parser.Atomize(name.Substring(0,index)); 6389wireElementType = _arrayType.Substring(0, index);
metadata\wsdlwriter.cs (3)
418String parentName = refTypeName.Substring(0, index); 2252String prefix = qname.Substring(0, index); 2259String csname =elementTypeName+wireName.Substring(0,1).ToUpper(CultureInfo.InvariantCulture)+wireName.Substring(1)+rankStr;
System.Runtime.Serialization (21)
System\Runtime\Serialization\CodeExporter.cs (2)
475string containingTypeName = originalName.Substring(0, nestedTypeIndex); 1423identifier = identifier.Substring(0, MaxIdentifierLength - requiredLength);
System\Runtime\Serialization\DataContract.cs (7)
1666typeName = typeName.Substring(0, iParam); 1727localName.Append(typeName.Substring(startIndex, endIndex - startIndex)); 1737nestedParamCounts.Add(Int32.Parse(typeName.Substring(endIndex + 1, startIndex - endIndex - 1), CultureInfo.InvariantCulture)); 1858ns = fullTypeName.Substring(0, nsEnd); 1863localName = localName.Substring(0, iParam); 2006if (!Int32.TryParse(format.Substring(start, i - start), out paramIndex) || paramIndex < 0 || paramIndex >= genericNameProvider.GetParameterCount()) 2007throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.GenericParameterNotValid, format.Substring(start, i - start), genericNameProvider.GetGenericTypeName(), genericNameProvider.GetParameterCount() - 1)));
System\Runtime\Serialization\EnumDataContract.cs (1)
437throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.InvalidEnumValueOnRead, value.Substring(index, count), DataContract.GetClrTypeFullName(UnderlyingType))));
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (3)
72name = qname.Substring(0, colon); 196string ticksvalue = dateTimeValue.Substring(6, dateTimeValue.Length - 8); 209ticksvalue = ticksvalue.Substring(0, indexOfTimeZoneOffset);
System\Runtime\Serialization\Json\XmlJsonReader.cs (1)
1686sb.Append(ParseChar(val.Substring(i + 1, 4), NumberStyles.HexNumber));
System\Runtime\Serialization\SchemaExporter.cs (1)
288typeName = typeName.Substring(0, iParam);
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
472prefix = qname.Substring(0, colon);
System\Xml\XmlBaseReader.cs (2)
575prefix = name.Substring(0, index); 1120prefix = name.Substring(0, index);
System\Xml\XmlConverter.cs (2)
489prefix = Trim(qname.Substring(0, index)); 1177return s.Substring(i, j - i);
System\Xml\XmlMtomReader.cs (1)
3128return data.Substring(start, offset - start);
System.Security (2)
system\security\cryptography\xml\utils.cs (2)
617idref = idref.Substring(startId + 3, endId - startId - 3); 634idref = idref.Substring(startId + 3, endId - startId - 3);
System.ServiceModel (56)
System\ServiceModel\Channels\BaseUriWithWildcard.cs (2)
145tokens[i] = binding.Substring(startIndex, nextSplitIndex - startIndex); 152tokens[i] = binding.Substring(startIndex, binding.Length - startIndex);
System\ServiceModel\Channels\ContextProtocol.cs (1)
123value = value.Substring(1, value.Length - 2);
System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
329action = action.Substring(1, action.Length - 2);
System\ServiceModel\Channels\MsmqSubqueueLockingQueue.cs (3)
65return MsmqSubqueueLockingQueue.LockSubqueuePrefix + lockGuid.Substring(lockGuid.Length - 8, 8); 432string formatNameWithProtocol = formatName.Substring(directFormatNamePrefix.Length, 436string address = formatNameWithProtocol.Substring(addressStartPos,
System\ServiceModel\Channels\PipeConnection.cs (2)
2870path = path.Substring(0, path.Length - 1); 2873return path.Substring(0, path.LastIndexOf('/') + 1);
System\ServiceModel\Channels\TextMessageEncoder.cs (2)
195charSet = contentType.Substring(charsetValueIndex, semiColonIndex - charsetValueIndex); 201charSet = charSet.Substring(1, charSet.Length - 2);
System\ServiceModel\Channels\TransportChannelListener.cs (1)
353string segment = (slashIndex == -1) ? relativePath : relativePath.Substring(0, slashIndex);
System\ServiceModel\Channels\UriPrefixTable.cs (1)
280segments.Add(this.segment.Substring(this.segmentStartAt, this.segmentLength));
System\ServiceModel\ComIntegration\ComPlusInstanceContextInitializer.cs (1)
99string assemblyGuidString = args.Name.Substring(0, indexOfComma).Trim().ToLowerInvariant();
System\ServiceModel\ComIntegration\MonikerUtility.cs (1)
25string suspectedKeyword = moniker.Substring(0, indexOfEqualSign).Trim();
System\ServiceModel\ComIntegration\TypeCacheManager.cs (2)
126major = ushort.Parse(version.Substring(0, indexOfDot), numberStyle, NumberFormatInfo.InvariantInfo); 131minorVersion = minorVersion.Substring(0, indexOfDot2);
System\ServiceModel\Configuration\IssuedTokenParametersElement.cs (1)
304writer.WriteComment(commentString.Substring(1, commentString.Length - 1));
System\ServiceModel\Description\ConfigLoader.cs (1)
399string beforeAsterisk = rawAddress.Substring(0, colonIndex + 3);
System\ServiceModel\Description\ServiceReflector.cs (2)
54string result = nameEnd > 0 ? t.Name.Substring(0, nameEnd) : t.Name; 982return method.Name.Substring(0, method.Name.Length - AsyncMethodNameSuffix.Length);
System\ServiceModel\Dispatcher\QueryFunctions.cs (2)
1123context.SetValue(context, arg2.basePtr, idx == -1 ? string.Empty : str1.Substring(0, idx)); 1195substr = str.Substring(startAt, length);
System\ServiceModel\Dispatcher\QueryPrefixOp.cs (2)
341this.segmentTail = segmentString.Substring(offset + 1, length - 1); 362newSegment = new TrieSegment(this.segmentFirstChar, this.segmentTail.Substring(0, charIndex - 1));
System\ServiceModel\Dispatcher\SecurityImpersonationBehavior.cs (1)
385string shortDomainName = downlevelName.Substring(0, delimiterPos + 1);
System\ServiceModel\Dispatcher\XPathLexer.cs (2)
542return this.xpath.Substring(0, this.tokenStart); 548return this.xpath.Substring(this.tokenStart, this.currChar - this.tokenStart);
System\ServiceModel\Dispatcher\XPathMessageFilter.cs (2)
640newXPath += this.xpath.Substring(startChar, tmp - startChar + 1); 645newXPath += this.xpath.Substring(startChar, tmp - startChar);
System\ServiceModel\FaultReason.cs (1)
107localLang = localLang.Substring(0, idx);
System\ServiceModel\Security\WSSecurityPolicy.cs (1)
2976message.Substring(0, (MaxLength - Ellipsis.Length) / 2),
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (1)
672dateTimeString = dateTimeString.Substring(0, 19) + dateTimeString.Substring(i);
System\ServiceModel\UpnEndpointIdentity.cs (1)
137string shortDomainName = downlevelName.Substring(0, delimiterPos + 1);
System\ServiceModel\XmlUtil.cs (3)
57return s.Substring(0, i); 93return s.Substring(i, j - i); 111prefix = TrimStart(qname.Substring(0, index));
System\UriTemplate.cs (10)
81template = template.Substring(0, fragmentStart); 93pathTemplate = template.Substring(0, queryStart); 108segment = pathTemplate.Substring(startIndex, endIndex + 1 - startIndex); 174key = queryTemplate.Substring(queryPartStart, equalSignIndex - queryPartStart); 175value = queryTemplate.Substring(equalSignIndex + 1, queryPartEnd - equalSignIndex - 1); 179key = queryTemplate.Substring(queryPartStart, queryPartEnd - queryPartStart); 788relPathSeg = relPathSeg.Substring(0, relPathSeg.Length - 1); // trim slash 815relPathSeg = relPathSeg.Substring(0, relPathSeg.Length - 1); // trim slash 1565varName = varDeclaration.Substring(0, equalSignIndex); 1674segment.Substring(1 + WildcardPath.Length, segment.Length - 2 - WildcardPath.Length),
System\UriTemplateCompoundPathSegment.cs (5)
42string firstLiteral = ((nextVarStart > 0) ? segment.Substring(0, nextVarStart) : string.Empty); 60segment.Substring(nextVarStart + 1, nextVarEnd - nextVarStart - 1), out hasDefault); 75literal = segment.Substring(nextVarEnd + 1, nextVarStart - nextVarEnd - 1); 215string varValue = segment.Substring(segmentPosition, nextLiteralPosition - segmentPosition); 237segment.Substring(segmentPosition, segment.Length - segmentPosition - this.varLitPairs[varLitPairs.Count - 1].Literal.Length));
System\UriTemplatePathSegment.cs (2)
64segment.Substring(1, segment.Length - 3)); 70segment.Substring(1, segment.Length - 2));
System\UriTemplateQueryValue.cs (1)
58return new UriTemplateVariableQueryValue(template.AddQueryVariable(value.Substring(1, value.Length - 2)));
System\UriTemplateTable.cs (1)
368relPathSeg = relPathSeg.Substring(0, relPathSeg.Length - 1); // trim slash
System.ServiceModel.Activation (8)
System\ServiceModel\Activation\MetabaseSettings.cs (4)
518siteAboPath = applicationID.Substring(IISConstants.LMSegment.Length, index - IISConstants.LMSegment.Length); 623endAboPath = endAboPath.Substring(0, index); 656startAboPath = endAboPath.Substring(0, index); 679endAboPath = endAboPath.Substring(0, index);
System\ServiceModel\Channels\MsmqHostedTransportManager.cs (1)
181virtualPath = virtualPath.Substring(0, virtualPath.Length - 1);
System\ServiceModel\ServiceHostingEnvironment.cs (3)
558string subVirtualPath = (pos == -1) ? processedVirtualPath : processedVirtualPath.Substring(0, pos); 1229string pathSegment = normalizedVirtualPath.Substring(0, normalizedVirtualPath.LastIndexOf(PathSeparator) + 1); 1281currentVirtualPath = virtualPath.Substring(0, virtualPath.LastIndexOf(PathSeparator));
System.ServiceModel.Activities (2)
System\ServiceModel\Activities\WorkflowServiceHost.cs (1)
684string virtualDirectoryPath = fullVirtualPath.Substring(0, index + 1);
System\ServiceModel\XamlIntegration\XNameTypeConverter.cs (1)
68prefix = stringValue.Substring(0, indexOfColon);
System.ServiceModel.Discovery (5)
System\ServiceModel\Discovery\ScopeCompiler.cs (4)
220segment = segment.Substring(0, index); 341rdnBuilder.Append(token.Substring(0, token.Length - 1)); 397attrTypeAndValueBuilder.Append(token.Substring(0, token.Length - 1)); 413attrType = attrTypeAndValue.Substring(0, equalIndex);
System\ServiceModel\Discovery\SerializationUtility.cs (1)
28string prefix = prefixedQName.Substring(0, index);
System.ServiceModel.Internals (5)
System\Runtime\Diagnostics\EventLogger.cs (1)
129logValues[i] = logValues[i].Substring(0, truncationLength);
System\Runtime\UrlUtility.cs (4)
62return UrlPathEncode(str.Substring(0, i)) + str.Substring(i); 531name = s.Substring(si, ti - si); 532value = s.Substring(ti + 1, i - ti - 1); 536value = s.Substring(si, i - si);
System.ServiceModel.Web (4)
System\ServiceModel\Dispatcher\HelpHtmlBuilder.cs (1)
242return uriTemplate.Substring(0, variablesIndex);
System\ServiceModel\Web\CachingParameterInspector.cs (2)
168string tableName = sqlDependencyString.Substring(startIndexForTableName, subStringLength); 191databaseName = sqlDependencyString.Substring(startIndexForDatabaseName, subStringLength);
System\ServiceModel\Web\Utility.cs (1)
150return str.Substring(startIndex, endIndex - startIndex);
System.Transactions (1)
System\Transactions\Trace\DiagnosticTrace.cs (1)
517message = message.Substring(0, MaxEventLogLength - 1);
System.Web (191)
Cache\SqlCacheDependency.cs (2)
374info._table = VerifyAndRemoveEscapeCharacters(outputCacheString.Substring(iTableStart, len)); 405database = outputCacheString.Substring(iDatabaseStart, len);
Compilation\BuildManager.cs (2)
1473string dir = virtualPathString.Substring(appPathLen, slashIndex - appPathLen); 2269dir = virtualPathString.Substring(0, slashIndex);
Compilation\BuildResultCache.cs (2)
848string baseName = fileData.Name.Substring(0, periodIndex); 852baseName = baseName.Substring(0, secondPeriodIndex);
Compilation\ClientBuildManager.cs (1)
228_hostingParameters.IISExpressVersion = appVirtualDir.Substring(IISExpressPrefix.Length, endSlash - IISExpressPrefix.Length);
Compilation\ConnectionStringsExpressionBuilder.cs (2)
33name = expression.Substring(0, expression.Length - connectionStringSuffix.Length); 38name = expression.Substring(0, expression.Length - providerNameSuffix.Length);
Compilation\IImplicitResourceProvider.cs (1)
197string keyPrefix = key.Substring(0, periodIndex);
Compilation\ProfileBuildProvider.cs (1)
135string grpName = property.Name.Substring(0, pos);
Configuration\AuthenticationConfig.cs (1)
72loginUrl = loginUrl.Substring(0, iqs);
Configuration\BrowserDefinition.cs (1)
59sb.Append(s.Substring(0, 1).ToUpper(CultureInfo.InvariantCulture));
Configuration\ExpressServerConfig.cs (2)
135string appRootRelativePath = (lenNoTrailingSlash > lenAppRoot) ? vpath.Substring(lenAppRoot, lenNoTrailingSlash - lenAppRoot) : String.Empty; 158dirList[dirListCount++] = subVdir.Substring(appRootRelativePath.Length + 1, nextSlashIndex - appRootRelativePath.Length);
Configuration\HttpCapabilitiesBase.cs (1)
550minor.Substring(0, nextDecimal),
Configuration\HttpCapabilitiesEvaluator.cs (2)
185userAgent = userAgent.Substring(0, 512); 270userAgentCacheKey = userAgentCacheKey.Substring(0, UserAgentCacheKeyLength);
Configuration\HttpRuntimeSection.cs (1)
793header = version.Substring(0, i);
Configuration\MachineKeySection.cs (4)
339strKey = strKey.Substring(0, strKey.Length - ",IsolateByAppId".Length); 344strKey = strKey.Substring(0, strKey.Length - ",IsolateApps".Length); 391strKey = strKey.Substring(0, strKey.Length - ",IsolateByAppId".Length); 396strKey = strKey.Substring(0, strKey.Length - ",IsolateApps".Length);
Configuration\MetabaseServerConfig.cs (3)
206result = result.Substring(0, result.Length - 1); 256vParent = VirtualPath.Create(parentPath.Substring(0, parentPath.Length - 1)); 346return path.Substring(0, l-1);
Configuration\ProcessHostMapPath.cs (2)
253vParent = VirtualPath.Create(parentPath.Substring(0, parentPath.Length - 1)); 335result = result.Substring(0, result.Length - 1);
Configuration\ProcessHostServerConfig.cs (2)
125string appRootRelativePath = (lenNoTrailingSlash > lenAppRoot) ? vpath.Substring(lenAppRoot, lenNoTrailingSlash - lenAppRoot) : String.Empty; 148dirList[dirListCount++] = subVdir.Substring(appRootRelativePath.Length + 1, nextSlashIndex - appRootRelativePath.Length);
Configuration\RegexWorker.cs (1)
52sb.Append(from.Substring(startIndex, length));
Configuration\TrustLevel.cs (2)
87String strDir = filename.Substring(0, filename.LastIndexOf('\\') + 1); 117String strDir = filename.Substring(0, filename.LastIndexOf('\\') + 1);
Configuration\UserMapPath.cs (1)
115matchPath = matchPath.Substring(0, index);
Configuration\VirtualDirectoryMapping.cs (1)
82physicalDirectory = physicalDirectory.Substring(0, physicalDirectory.Length - 1);
Configuration\WebConfigurationHost.cs (2)
366siteID = configPath.Substring(indexStart, length); 695site = locationSubPath.Substring(0, firstSlash);
DataAccess\SqlConnectionHelper.cs (1)
223databaseName = strippedFileName.Substring(0, 30) + "_" + Guid.NewGuid().ToString("N", CultureInfo.InvariantCulture);
FileChangesMonitor.cs (1)
960string dirName = fileName.Substring(0, dirNameLength);
Handlers\AssemblyResourceLoader.cs (4)
527string assemblyName = decryptedData.Substring(0, separatorIndex); 567tokenBytes[i] = Byte.Parse(token.Substring(i * 2, 2), NumberStyles.HexNumber, CultureInfo.InvariantCulture); 665newContent.Append(content.Substring(startIndex, match.Index - startIndex)); 682newContent.Append(content.Substring(startIndex, content.Length - startIndex));
Handlers\TraceHandler.cs (1)
134_response.Redirect(url.Substring(0, url.IndexOf("?", StringComparison.Ordinal)));
Hosting\ApplicationManager.cs (1)
1345publicKey[i] = Byte.Parse(publicKeyString.Substring(i * 2, 2), System.Globalization.NumberStyles.HexNumber, CultureInfo.InvariantCulture);
Hosting\HostingEnvironment.cs (1)
1112result = result.Substring(0, result.Length - 1);
Hosting\IIS7WorkerRequest.cs (3)
172_pathTranslated = _pathTranslated.Substring(0, pathTranslatedLength); 1274String name = s.Substring(i, ci-i).Trim(); 1289String value = s.Substring(ci+1, ni-ci-1).Trim();
Hosting\ISAPIApplicationHost.cs (1)
180return (si > 0) ? id.Substring(offset, si - offset) : DEFAULT_SITEID;
Hosting\ISAPIWorkerRequest.cs (3)
750String name = s.Substring(i, ci-i).Trim(); 764String value = s.Substring(ci+1, ni-ci-1).Trim(); 2121_pathTranslated = _pathTranslated.Substring(0, pathTranslatedLength);
Hosting\SimpleWorkerRequest.cs (2)
45_page = _page.Substring(0, i); 209String appPath = _appPhysPath.Substring(0, _appPhysPath.Length-1); // without trailing "\"
HttpApplication.cs (2)
1880String targetName = appMethodName.Substring(0, namePosIndex); 1900&& StringUtil.EqualsIgnoreCase(eventName.Substring(0, 2), "on")) {
HttpClientCertificate.cs (1)
303strReturn += strAll.Substring(iStart, iEnd - iStart);
HttpContext.cs (2)
508string originalUrl = path.Substring(0, originalUrlLen); 1543path = path.Substring(0, iqs);
HttpCookie.cs (3)
372string cookiePair = dividerIndex >= 0 ? input.Substring(0, dividerIndex) : input; 389string cookieAv = dividerIndex >= 0 ? input.Substring(cookieAvStartIndex, dividerIndex - cookieAvStartIndex).Trim() : input.Substring(cookieAvStartIndex).Trim(); 392string attributeName = assignmentIndex >= 0 ? cookieAv.Substring(0, assignmentIndex).Trim() : cookieAv;
HttpRequest.cs (15)
325values.Add(s.Substring(i, ci-i)); 669c.Name = s.Substring(i, ei-i); 686c.Value = s.Substring(i, l-i); 690c.Values.Add(s.Substring(i, ei-i), s.Substring(ei+1, ai-ei-1)); 695c.Values.Add(null, s.Substring(i, ai-i)); 732String cookieString = s.Substring(i, j-i).Trim(); 883attrValue = headerValue.Substring(i+1, j-i-1).Trim(); 896attrValue = headerValue.Substring(i, j-i).Trim(); 1457uri = uri.Substring(0, qsIndex); 1550_filePath = VirtualPath.CreateAbsolute(Path.Substring(0, filePathLen)); 1638string pathInfoString = path.VirtualPathString.Substring(filePathLength, pathLength - filePathLength); 2710detectedString += value.Substring(startIndex, endIndex - startIndex) + "\""; 2713detectedString += value.Substring(startIndex, endIndex - startIndex) + "...\""; 3021realPath = realPath.Substring(0, realPath.Length - 1);
HttpResponse.cs (6)
2991path = path.Substring(0, i); 3044code = Int32.Parse(value.Substring(0, i), CultureInfo.InvariantCulture); 3269virtualPath = virtualPath.Substring(0, appPath.Length) + _appPathModifier + "/"; 3273virtualPath.Substring(0, appPath.Length) + 3294return virtualPath.Substring(0, pos-1) + virtualPath.Substring(pos + _appPathModifier.Length); 3345url = UrlEncodeIDNSafe(url.Substring(0, iqs)) + HttpUtility.UrlEncodeNonAscii(url.Substring(iqs), qsEncoding);
HttpRuntime.cs (1)
2844string clientScriptVirtualPath = AspNetClientFilesParentVirtualPath + aspNetVersion.Substring(0, aspNetVersion.LastIndexOf('.')).Replace('.', '_');
httpserverutility.cs (2)
327path = path.Substring(0, iqs); 778path = path.Substring(0, iqs);
HttpValueCollection.cs (3)
191name = s.Substring(si, ti-si); 192value = s.Substring(ti+1, i-ti-1); 195value = s.Substring(si, i-si);
Management\EventlogProvider.cs (2)
143stackTrace = stackTrace.Substring(0, remainingSpace); 245dataFields[i] = ((string)field).Substring(0, _maxTruncatedParamLen) + _truncateWarning;
Management\SimpleMailWebEventProvider.cs (1)
173details = details.Substring(0, _maxEventLength);
Management\SqlServices.cs (1)
549return database.Substring(1, database.Length-2);
Management\SqlWebEventProvider.cs (1)
167details = details.Substring(0, _maxEventDetailsLength);
MultipartContentParser.cs (3)
168return l.Substring(i1, i2-i1); 175return l.Substring(i1, i2-i1).Trim(); 199String header = line.Substring(0, ic);
OutputCacheModule.cs (2)
342acceptEncodingWithoutWeight = acceptEncoding.Substring(0, tokenEnd); 444string s = acceptEncoding.Substring(equalsIndex+1, tokenEnd - (equalsIndex + 1));
parent\parent\parent\misc\ConfigPathUtility.cs (1)
130parentConfigPath = configPath.Substring(0, lastSlash);
Profile\ProfileModule.cs (1)
176pp.SerializedValue = values.Substring(startPos, length);
Routing\PageRouteHandler.cs (1)
84virtualPath = virtualPath.Substring(0, qmark);
Routing\ParsedRoute.cs (1)
617string parameterValueString = requestPathSegment.Substring(parameterStartIndex, parameterTextLength);
Routing\RouteCollection.cs (1)
222urlWithoutQs = url.Substring(0, iqs);
Routing\RouteParser.cs (3)
131string literalPart = GetLiteral(segment.Substring(startIndex, nextParameterStart - startIndex)); 146string parameterName = segment.Substring(nextParameterStart + 1, nextParameterEnd - nextParameterStart - 1); 195string nextPart = url.Substring(currentIndex, indexOfNextSeparator - currentIndex);
Security\ADMembershipProvider.cs (3)
2843str.Append(filterValue.Substring(0, index)); 3540serverName = tempStr.Substring(0, index); 4116domainName = tempUsername.Substring(0, index);
Security\CookielessHelper.cs (4)
90_Headers = path.Substring(startPos + 2, endPos - startPos - 2); 93path = path.Substring(0, startPos) + path.Substring(endPos+1); 138returnValue = _Headers.Substring(startPos, endPos-startPos); // get the substring 160_Headers = _Headers.Substring(0, startPos-2) + _Headers.Substring(endPos+1); // Remove old value
Security\FormsAuthentication.cs (2)
903strUrl = strUrl.Substring(0, pos); 907strUrl = strUrl.Substring(0, pos + lenAtStartToLeave) + strUrl.Substring(end);
Security\PassportAuthenticationModule.cs (1)
186strUrl = strUrl.Substring(0, iPos);
Security\PassportIdentity.cs (5)
118String strCurrentHeader = strResponseHeaders.Substring(iStart, iEnd - iStart); 122String strHeader = strCurrentHeader.Substring(0, iColon); 154string str1 = strIn.Substring(0, iPos1); 155string str2 = strIn.Substring(iPos1, iPos2-iPos1); 156string str3 = strIn.Substring(iPos2, strIn.Length-iPos2);
Security\RolePrincipal.cs (1)
420info.AddValue("_AllRoles", allRoles.Substring(0, allRoles.Length - 1));
SiteMapNode.cs (1)
393url = url.Substring(0, queryStringIndex);
SiteMapProvider.cs (1)
148result = FindSiteMapNode(rawUrl.Substring(0, queryStringIndex));
UI\ChtmlTextWriter.cs (2)
154base.WriteEncodedText(text.Substring(start, pos - start)); 170base.WriteEncodedText(text.Substring(start, length - start));
UI\ClientScriptManager.cs (1)
930script = script.Substring(0, index + 1) + ";" + script.Substring(index + 1);
UI\Control.cs (1)
3169childID = id.Substring(pathOffset, newPathOffset - pathOffset);
UI\ControlBuilder.cs (1)
2761string expressionPrefix = code.Substring(0, indexOfColon).Trim();
UI\CssTextWriter.cs (1)
445urlValue = url.Substring(urlIndex, urlLength).Trim();
UI\DataBinder.cs (3)
226string index = expr.Substring(indexExprStart + 1, indexExprEnd - indexExprStart - 1).Trim(); 229propName = expr.Substring(0, indexExprStart); 234indexValue = index.Substring(1, index.Length - 2);
UI\Html32TextWriter.cs (2)
429value = value.Substring(4,value.Length-5); 436value = value.Substring(4,value.Length-5);
UI\HtmlControls\HtmlInputRadioButton.cs (1)
127name = uid.Substring(0, lastColon+1) + name;
UI\HTMLTextWriter.cs (3)
1238WriteUrlEncodedString(url.Substring(0, i), false); 1266HttpUtility.HtmlEncode(pos == 0 ? text : text.Substring(pos, length - pos), this); 1271HttpUtility.HtmlEncode(text.Substring(pos, nbsp - pos), this);
UI\Page.cs (1)
2205viewStateChunks.Add(state.Substring(curPos, MaxPageStateFieldLength));
UI\PropertyMapper.cs (2)
56propName = mappedName.Substring(startIndex, index - startIndex); 155propertyName = mappedName.Substring(startIndex, index - startIndex);
UI\TagNameToTypeMapper.cs (1)
501string prefix = tagName.Substring(0, colonIndex);
UI\TemplateParser.cs (5)
1173precompTargetWriter.Write(text.Substring(0, match.Index)); 2278string tag = text.Substring(textPos, match.Index-textPos+2); 2358typeName = typeName.Substring(0, commaIndex).Trim(); 2543code = code.Substring(0, newlineIndex); 2807builder.SetTagInnerText(stackEntry._inputText.Substring(
UI\TraceContext.cs (1)
772url = url.Substring(0, loc);
UI\Util.cs (2)
332string version = VersionInfo.SystemWebVersion.Substring(0, VersionInfo.SystemWebVersion.LastIndexOf('.')).Replace('.', '_'); 1361return fileName.Substring(0, fileName.Length-4);
UI\WebControls\Calendar.cs (2)
1412dayName = dtf.GetDayName((DayOfWeek)dayOfWeek).Substring(0, 1); 1415dayName = dtf.GetDayName((DayOfWeek)dayOfWeek).Substring(0, 2);
UI\WebControls\DetailsView.cs (1)
3366CommandEventArgs cea = new CommandEventArgs(eventArgument.Substring(0, separatorIndex), eventArgument.Substring(separatorIndex + 1));
UI\WebControls\FormView.cs (1)
2845CommandEventArgs cea = new CommandEventArgs(eventArgument.Substring(0, separatorIndex), eventArgument.Substring(separatorIndex + 1));
UI\WebControls\GridView.cs (1)
4164CommandEventArgs cea = new CommandEventArgs(eventArgument.Substring(0, separatorIndex), eventArgument.Substring(separatorIndex + 1));
UI\WebControls\QueryExtensions.cs (1)
27sortExpression = sortExpression.Substring(0, descIndex).Trim();
UI\WebControls\RadioButton.cs (2)
72name = uid.Substring(0, lastColon+1) + name; 77name = uid.Substring(0, lastColon);
UI\WebControls\TreeView.cs (7)
3233string nodeIndexString = _callbackEventArgument.Substring(startIndex, endIndex); 3239int lastIndex = Int32.Parse(_callbackEventArgument.Substring(startIndex, endIndex - startIndex), CultureInfo.InvariantCulture); 3248string parentIsLast = _callbackEventArgument.Substring(startIndex, endIndex - startIndex); 3253int nodeTextLength = Int32.Parse(_callbackEventArgument.Substring(startIndex, endIndex - startIndex), CultureInfo.InvariantCulture); 3256string nodeText = _callbackEventArgument.Substring(startIndex, endIndex - startIndex); 3261int dataPathLength = Int32.Parse(_callbackEventArgument.Substring(startIndex, endIndex - startIndex), CultureInfo.InvariantCulture); 3264string dataPath = _callbackEventArgument.Substring(startIndex, endIndex - startIndex);
UI\WebControls\Unit.cs (1)
131string numericPart = trimLcase.Substring(0, lastDigit+1);
Util\CultureUtil.cs (1)
60return input.Substring(0, indexOfSemicolon);
Util\FileUtil.cs (4)
93string nextDir = fileName.Substring(0, nextSeparator); 124path = path.Substring(0, length - 1); 137path = path.Substring(0, maxPathLength - 13) + 203string path = physicalPath.Substring(0, pos);
Util\HttpEncoder.cs (1)
798return UrlPathEncodeImpl(value.Substring(0, i)) + value.Substring(i);
Util\Misc.cs (1)
162ver = ver.Substring(0, pos + 1) + "0";
Util\UriUtil.cs (2)
125path = input.Substring(0, queryFragmentSeparatorPos); 171schemeAndAuthority = inputWithoutQueryFragment.Substring(0, schemeAndAuthorityLength);
Util\UrlPath.cs (9)
113return path.Substring(0, slashIndex + 1); 150path = path.Substring(0, iqs); 174basepath = basepath.Substring(0, lastSlashIndex + 1); 231path = path.Substring(0, iqs); 363to = to.Substring(0, iqs); 426return virtualPath.Substring(i + 1, length - i - 1); 442return virtualPath.Substring(0,i); 456return virtualPath.Substring(i, length - i); 497return path.Substring(0, l-1);
Util\versioninfo.cs (1)
148s = s.Substring(0, i);
VirtualPath.cs (1)
412virtualPath = virtualPath.Substring(0, index + 1);
XmlSiteMapProvider.cs (2)
701className = resourceKey.Substring(0, index); 708key = key.Substring(0, defaultIndex);
System.Web.DataVisualization (33)
Common\Annotation\AnnotationBase.cs (2)
3281string seriesName = dataPointName.Substring(0, separatorIndex); 3314string areaName = axisName.Substring(0, separatorIndex);
Common\ChartTypes\BoxPlotChart.cs (1)
1585 linkedSeriesName = linkedSeriesName.Substring(0, valueTypeIndex);
Common\ChartTypes\ErrorBarChart.cs (4)
343 linkedSeriesName = linkedSeriesName.Substring(0, valueTypeIndex); 1125 attribValue = attribValue.Substring(0, valueTypeIndex); 1658 typeName = typeName.Substring(1, typeName.Length - 2); 1819 linkedSeriesName = linkedSeriesName.Substring(0, valueTypeIndex);
Common\ChartTypes\KagiChart.cs (1)
292attrValue = attrValue.Substring(0, attrValue.Length - 1);
Common\ChartTypes\PointAndFigureChart.cs (1)
381attrValue = attrValue.Substring(0, attrValue.Length - 1);
Common\ChartTypes\RenkoChart.cs (1)
308 attrValue = attrValue.Substring(0, attrValue.Length - 1);
Common\DataManager\DataPoint.cs (3)
366 otherAttributeNames[index] = otherAttributeNames[index].Substring(0, equalSignIndex); 379 otherFieldNames[index] = otherFieldNames[index].Substring(0, bracketIndex); 2616attributeName = result.Substring(attributeNameStartIndex, keyEndIndex - attributeNameStartIndex - 1);
Common\DataManager\DataSeries.cs (3)
1223 yValueIndex = int.Parse(result.Substring(keyEndIndex + 1, 1), CultureInfo.InvariantCulture); 1237 format = result.Substring(keyEndIndex, formatEnd - keyEndIndex).Trim('{', '}'); 1344 format = result.Substring(keyEndIndex, formatEnd - keyEndIndex).Trim('{', '}');
Common\General\Axis.cs (2)
4693newText.Substring(0, (newText.Length) / 2 - index) + 4701newText.Substring(0, (newText.Length) / 2 + index) +
Common\General\Chart.cs (1)
3590 webFormUrl = webFormUrl.Substring(0, slashIndex + 1);
Common\General\LegendColumns.cs (1)
1849 resultString = resultString.Substring(0, charIndex) + "\n" +
Common\Utilities\ImageLoader.cs (1)
226string resourceRootName = imageURL.Substring(0, columnIndex);
Common\Utilities\ValueConverter.cs (1)
86 if(bracketIndex >= 1 && convertionFormat.Substring(bracketIndex - 1, 1) == "{")
Common\Utilities\XmlSerializer.cs (6)
558 val = val.Substring(0, commaIndex); 566 standardData = standardData.Substring(0, charIndex); 577 standardData = standardData.Substring(0, charIndex); 1034 if(objectName.Substring(0, itemInfo.name.Length) == itemInfo.name) 1047 if(objectName.Substring(objectName.Length - itemInfo.name.Length, itemInfo.name.Length) == itemInfo.name) 1233 classInfo.name = item.Substring(0, pointIndex).Trim();
WebForm\ChartWebControl.cs (4)
766 string[] values = imageURL.Substring(indexSEQ + 1, indexClosing - indexSEQ - 1).Split(','); 817 result = imageUrl.Substring(0, indexSEQ); 828 string[] values = imageUrl.Substring(indexSEQ + 1, indexClosing - indexSEQ - 1).Split(','); 2050 buildNumber = buildNumber.Substring(0, versionIndex);
WebForm\General\ChartHttpHandler.cs (1)
1074String name = item.Substring(0, eqPositon).Trim();
System.Web.Entity (2)
System\Data\WebControls\OrderByBuilder.cs (2)
159return statement.Substring(0, statement.Length - tail.Length); 168return statement.Substring(0, statement.Length - tail.Length);
System.Web.Entity.Design (2)
System\Data\WebControls\Design\EntityDataSourceDataSelection.cs (1)
381return name.Substring(1, name.Length - 2).Replace("]]", "]");
System\Data\WebControls\Design\EntityDataSourceDesignerHelper.cs (1)
892resolvedPath = ExpandDataDirectory(metadataPaths.Substring(macroPathBeginIndex, indexEnd - macroPathBeginIndex), warnings);
System.Web.Extensions (26)
ClientServices\Providers\ProxyHelper.cs (3)
296name = allCookies[iter].Substring(0, posEquals); 349string cookieName = ((posEquals < 0) ? cookieHeader : cookieHeader.Substring(0, posEquals)).Trim(); 398return SqlHelper.GetCookieFromDB(cookieHeader.Substring(0, 32), username, connectionString, connectionStringProvider);
Compilation\WCFModel\MetadataFile.cs (1)
510ns = ns.Substring(0, ns.Length - defaultExtension.Length);
Handlers\ScriptResourceHandler.cs (1)
67scriptResourceName.Substring(0, scriptResourceName.Length - 9) + ".js" :
Script\Serialization\JavaScriptString.cs (2)
42string result = _s.Substring(_index, count); 86return _s.Substring(_index, length);
Script\Services\ClientProxyGenerator.cs (2)
227proxyPath = proxyPath.Substring(0, domainEnd) + HttpUtility.UrlPathEncode(proxyPath.Substring(domainEnd)); 439string fullPath = typeName.Substring(0, dotIndex);
UI\CompositeScriptReference.cs (1)
74path = (path.Substring(0, path.Length - 2) + cultureName + ".js");
UI\PageRequestManager.cs (1)
354postBackTarget = postBackSourceInfo.Substring(0, indexOfPipe);
UI\ProfileServiceManager.cs (1)
185groupName = fullPropertyName.Substring(0, dotIndex);
UI\ScriptReference.cs (1)
170resourceName = resourceName.Substring(0, resourceName.Length - 2) +
UI\ScriptReferenceBase.cs (2)
169pathWithoutQuery = releasePath.Substring(0, indexOfQuery); 192return (pathOrName.Substring(0, pathOrName.Length - 2) + "debug.js");
UI\ScriptRegistrationManager.cs (2)
124string tweenSpace = text.Substring(start, length); 676string scriptBlockContents = scriptContent.Substring(indexOfEndOfScriptBeginTag, (indexOfScriptEndTag - indexOfEndOfScriptBeginTag));
UI\ScriptResourceAttribute.cs (5)
111output.Append(content.Substring(startIndex, match.Index - startIndex)); 136output.Append(content.Substring(startIndex, content.Length - startIndex)); 148return rawResourceName.Substring(0, rawResourceName.Length - 10); 162string releaseResourceName = resourceName.Substring(0, resourceName.Length - 9) + ".js"; 226builder.Append(typeName.Substring(0, lastDot));
UI\WebControls\Dynamic.cs (3)
938string s = token.text.Substring(1, token.text.Length - 2); 987if (Single.TryParse(text.Substring(0, text.Length - 1), out f)) value = f; 1991token.text = text.Substring(tokenPos, textPos - tokenPos);
Util\HexParser.cs (1)
16tokenBytes[i] = Byte.Parse(token.Substring(i * 2, 2), NumberStyles.HexNumber, CultureInfo.InvariantCulture);
System.Web.Mobile (49)
Mobile\MobileErrorInfo.cs (1)
121s = s.Substring(0, i);
Mobile\UrlPath.cs (2)
60string dir = path.Substring(0, path.LastIndexOf('/')); 139path = path.Substring(0, iqs);
UI\MobileControls\Adapters\ChtmlPageAdapter.cs (4)
287name.Substring(0, index)); 289name.Substring(pageBeginPos, 316collection.Add(name.Substring(0, index).Replace(',',':'), value); 320collection.Add(name.Substring(0, index), value);
UI\MobileControls\Adapters\HtmlCalendarAdapter.cs (1)
61String tagComplete = webCalendarHtml.Substring(tagBeginIndex, tagEndIndex-tagBeginIndex+1);
UI\MobileControls\Adapters\HtmlFormAdapter.cs (5)
115url = url.Substring(0, i); 367Constants.UniqueFilePathSuffixVariable.Substring( 432name = Page.Server.UrlDecode(queryString.Substring(si, ti-si)); 433value = Page.Server.UrlDecode(queryString.Substring(ti+1, i-ti-1)); 438value = Page.Server.UrlDecode(queryString.Substring(si, i-si));
UI\MobileControls\Adapters\HtmlMobileTextWriter.cs (2)
104base.WriteEncodedText(text.Substring(start, pos - start)); 120base.WriteEncodedText(text.Substring(start, length - start));
UI\MobileControls\Adapters\HtmlTextViewAdapter.cs (1)
84text = text.Substring(begin, end - begin);
UI\MobileControls\Adapters\WmlControlAdapter.cs (2)
91softkeyLabel = softkeyLabel.Substring(0, Device.MaximumSoftkeyLabelLength); 252softkeyLabel = softkeyLabel.Substring(0, Device.MaximumSoftkeyLabelLength);
UI\MobileControls\Adapters\WmlFormAdapter.cs (1)
213eventSource = eventSource.Substring(0, comma);
UI\MobileControls\Adapters\WmlMobileTextWriter.cs (3)
275url.Substring(ampPos + 1, ampEscaped.Length) != ampEscaped) 701queryString = queryString.Substring(0, loc); 1355WriteUrlEncodedString(url.Substring(0, i), false);
UI\MobileControls\Adapters\WmlPageAdapter.cs (2)
295stackTrace = stackTrace.Substring(0, maximumStackTrace); 313wmlWriter.WriteEncodedText(stackTrace.Substring(lineBegin, lineEnd - lineBegin));
UI\MobileControls\Adapters\WmlPhoneCallAdapter.cs (1)
119softkeyLabel = softkeyLabel.Substring(0, Device.MaximumSoftkeyLabelLength);
UI\MobileControls\Adapters\WmlTextViewAdapter.cs (1)
87text = text.Substring(begin, end - begin);
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicControlAdapter.cs (4)
728processedString.Append(queryString.Substring(offset, queryString.Length - offset)); 733processedString.Append(queryString.Substring(offset, pos - offset + 1)); 763queryString = queryString.Substring(0, pos-1); 766queryString = queryString.Substring(0, pos);
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicPageAdapter.cs (2)
145name.Substring(0, index)); 147name.Substring(pageBeginPos,
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicTextViewAdapter.cs (1)
74text = text.Substring(beginSubstring, endSubstring - beginSubstring);
UI\MobileControls\Design\Adapters\DesignerCommandAdapter.cs (2)
103tmpRequiredWidth = MSHTMLHostUtil.GetHtmlFragmentWidth(String.Format(CultureInfo.CurrentCulture, htmlFragment, HttpUtility.HtmlEncode(controlText.Substring(0, allowedLength)))); 109commandCaption = controlText.Substring(0, allowedLength - 1);
UI\MobileControls\Design\Adapters\DesignerTextViewAdapter.cs (3)
215tagName = text.Substring(tagBegin+1, i-tagBegin-1).Trim().ToUpper(CultureInfo.InvariantCulture); 243tagName = text.Substring(tagBegin+1, i-tagBegin-1).Trim().ToUpper(CultureInfo.InvariantCulture); 296tagName = text.Substring(tagBegin+1, i-tagBegin-1).Trim().ToUpper(CultureInfo.InvariantCulture);
UI\MobileControls\DeviceSpecificChoice.cs (1)
172String containingObjectName = propertyName.Substring(0, dash);
UI\MobileControls\LiteralText.cs (1)
155return (stop > start) ? text.Substring(start, stop - start) : String.Empty;
UI\MobileControls\LiteralTextParser.cs (4)
201ParseText(literalText.Substring(currentPosition, nextTag - currentPosition)); 307String tagName = literalText.Substring(tagStart, tagNameFinish - tagStart); 544literalText.Substring(attrNameStart, attrNameFinish - attrNameStart), 545literalText.Substring(attrValueStart, attrPos - attrValueStart));
UI\MobileControls\MobileControl.cs (1)
975text = text.Substring(start, finish - start);
UI\MobileControls\MobilePage.cs (3)
463path = path.Substring(0, slash); 588queryStringText = queryStringText.Substring(0, i-1); 1533controlId = controlId.Substring(0, name.Length - 2);
UI\MobileControls\ObjectList.cs (1)
503tableFields.Substring(pos, nextSemicolon - pos);
System.Web.Services (19)
System\Web\Services\Description\WebCodeGenerator.cs (1)
76names[name.Substring(0, dot)] = types[i];
System\Web\Services\Description\WebServicesInteroperability.cs (1)
601normativeStatement = normativeStatement.Substring(0, comma);
System\Web\Services\Discovery\DiscoveryClientProtocol.cs (3)
318string allElse = path.Substring(0, path.Length - extension.Length); 454if (currentDir.Length <= fullPath.Length && string.Compare(currentDir, fullPath.Substring(0, currentDir.Length), StringComparison.OrdinalIgnoreCase) == 0) { 465currentDir = currentDir.Substring(0, lastSlash + 1);
System\Web\Services\Discovery\DiscoveryReference.cs (2)
83if (firstDot >= 0) url = url.Substring(0, firstDot); 87if (question >= 0) url = url.Substring(0, question);
System\Web\Services\Discovery\DiscoveryRequestHandler.cs (1)
129return (lastSlash > 0) ? str.Substring(0, lastSlash) : "";
System\Web\Services\Discovery\DynamicPhysicalDiscoSearcher.cs (1)
77+ dirName.Substring(startDir.Length, dirName.Length - startDir.Length).Replace('\\', '/')
System\Web\Services\Discovery\DynamicVirtualDiscoSearcher.cs (1)
190+ dirName.Substring(rootPathAsdi.Length, dirName.Length - rootPathAsdi.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));
System\Web\Services\Protocols\RequestResponse.cs (1)
216string entity = s.Substring(i + 1, index - i - 1);
System\Web\Services\Protocols\Scalars.cs (2)
210if (semi >= 0) return contentType.Substring(0, semi); 218if (tmp >= 0) return baseCT.Substring(0, tmp);
System\Web\Services\Protocols\Soap11ServerProtocol.cs (1)
54methodUriString = methodUriString.Substring(1, methodUriString.Length - 2);
System\Web\Services\Protocols\SoapClientProtocol.cs (1)
852string prefix = qnameValue.Substring(0, colon);
System.Windows.Forms (56)
misc\DbgUtil.cs (2)
344fileName = fileName.Substring( backSlashIndex + 1, fileName.Length - backSlashIndex - 1); 354args = args.Substring(0, args.Length - 2);
misc\DebugHandleTracker.cs (1)
434string line = releventStack.Substring(startIndex, endIndex - startIndex);
winforms\Managed\System\Resources\ResXDataNode.cs (2)
886string newTypeName = assemblyQualifiedTypeName.Substring(0, pos); 1038string shortName = name.Substring(0, indexOfComma );
winforms\Managed\System\Resources\ResXFileRef.cs (2)
250fileName = stringValue.Substring(1, lastIndexOfQuote-1); // remove the quotes in" ..... " 258fileName = stringValue.Substring(0,nextSemiColumn);
winforms\Managed\System\Resources\ResXResourceReader.cs (1)
670return typeName.Substring(0, indexStart);
winforms\Managed\System\Resources\ResXResourceWriter.cs (1)
675return ((indexStart == -1) ? typeName : typeName.Substring(0, indexStart));
winforms\Managed\System\WinForms\Application.cs (1)
296companyName = ns.Substring(0, firstDot);
winforms\Managed\System\WinForms\AxHost.cs (1)
4040int dispid = Int32.Parse(name.Substring(8, endIndex - 8), CultureInfo.InvariantCulture);
winforms\Managed\System\WinForms\BindingContext.cs (1)
359string dataPath = (lastDot == -1) ? "" : dataMember.Substring(0, lastDot);
winforms\Managed\System\WinForms\BindingMemberInfo.cs (1)
30dataList = dataMember.Substring(0,lastDot);
winforms\Managed\System\WinForms\BindingSource.cs (3)
1133current = current.Substring(0, length - 4).Trim(); 1137current = current.Substring(0, length - 5).Trim(); 1143current = current.Substring(1, current.Length - 2);
winforms\Managed\System\WinForms\ComboBox.cs (1)
1121return Text.Substring(SelectionStart, SelectionLength);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IManagedPerPropertyBrowsingHandler.cs (4)
99attrName = attrName.Substring(0, comma); 115t = Type.GetType(attrName.Substring(0,lastDot) + assemblyName); 118t = a.GetType(attrName.Substring(0,lastDot) + assemblyName); 144Debug.Fail("Couldn't load field '" + fieldName + "' from type '" + attrName.Substring(0,lastDot) + "'. It does not exist or is not static");
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
1314errorInfo = errorInfo.Substring(0, errorInfo.Length-1);
winforms\Managed\System\WinForms\Control.cs (1)
20169companyName = ns.Substring(0, firstDot);
winforms\Managed\System\WinForms\DataGridViewCell.cs (1)
4719StringBuilder sb = new StringBuilder(toolTipText.Substring(0, DATAGRIDVIEWCELL_maxToolTipCutOff), DATAGRIDVIEWCELL_maxToolTipCutOff + DATAGRIDVIEWCELL_toolTipEllipsisLength);
winforms\Managed\System\WinForms\FileDialog.cs (2)
383extensions.Add(ext.Substring(i + 1, ext.Length - (i + 1))); 884string s = fileName.Substring(0, fileName.Length - currentExtension.Length);
winforms\Managed\System\WinForms\InputLanguage.cs (2)
265if (language == (0xffff & Convert.ToInt32(encoding.Substring(4,4), 16))) { 391return "0000000000000000".Substring(0, length - input.Length) + input;
winforms\Managed\System\WinForms\LinkLabel.cs (1)
2777name = text.Substring(charStart, charEnd - charStart);
winforms\Managed\System\WinForms\ListBox.cs (1)
2188string txt = (z.Length > 40) ? z.Substring(0, 40) : z;
winforms\Managed\System\WinForms\ListView.cs (3)
5207string txt = (z.Length > 40) ? z.Substring(0, 40) : z; 5216string txt = (z.Length > 40) ? z.Substring(0, 40) : z; 6065text = text.Substring(0, dispInfo.item.cchTextMax - 1);
winforms\Managed\System\WinForms\NativeMethods.cs (1)
6076String left = s.Substring(0, n);
winforms\Managed\System\WinForms\NativeWindow.cs (1)
760cp.Caption = cp.Caption.Substring(0, Int16.MaxValue);
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (1)
2168strValue = strValue.Substring(0, maximumLengthOfPropertyString);
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (1)
64value = value.Substring(0, maximumToolTipLength) + "...";
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
1810if (text != null && text.Length > 0 && String.Compare(text.Substring(0,1), letter, true, CultureInfo.InvariantCulture) == 0) {
winforms\Managed\System\WinForms\RichTextBox.cs (4)
2042string foundString = text.Substring(position, str.Length); 2288fontName = fontName.Substring(0, index); 2995str = str.Substring(0, nullTerminatedLength); 3126result = result.Substring(0, result.Length-1);
winforms\Managed\System\WinForms\SendKeys.cs (3)
437string keyName = keys.Substring(i + 1, j - (i + 1)); 456repeat = Int32.Parse(keys.Substring(digit, j - digit), CultureInfo.InvariantCulture); 494throw new ArgumentException(SR.GetString(SR.InvalidSendKeysKeyword, keys.Substring(i + 1, j - (i + 1))));
winforms\Managed\System\WinForms\TableLayoutSettingsTypeConverter.cs (1)
204SizeType type = (SizeType)Enum.Parse(sizeTypeType, styleString.Substring(currentIndex, nextIndex - currentIndex), true);
winforms\Managed\System\WinForms\TextBoxBase.cs (5)
696string line = text.Substring(lineStart, lineEnd - lineStart); 1112return Text.Substring(selStart, selLength); 2141int newStart = start == 0 ? 0 : e.GetByteCount(str.Substring(0, start)); 2142end = newStart + e.GetByteCount(str.Substring(start, end - start)); 2163if (txt.Length > 40) txt = txt.Substring(0, 40) + "...";
winforms\Managed\System\WinForms\ThreadExceptionDialog.cs (1)
432return s.Substring(0, i);
winforms\Managed\System\WinForms\TrustManager.cs (2)
272strBrowserPath = strBrowserCommand.Substring(1, closingQuoteIndex - 1); 280strBrowserPath = strBrowserCommand.Substring(0, firstSpaceIndex);
winforms\Managed\System\WinForms\WinFormsUtils.cs (2)
177StringBuilder str = new StringBuilder(text.Substring(0, index)); 312StringBuilder str = new StringBuilder(text.Substring(0, index));
System.Windows.Forms.DataVisualization (29)
Common\Annotation\AnnotationBase.cs (2)
3281string seriesName = dataPointName.Substring(0, separatorIndex); 3314string areaName = axisName.Substring(0, separatorIndex);
Common\ChartTypes\BoxPlotChart.cs (1)
1585 linkedSeriesName = linkedSeriesName.Substring(0, valueTypeIndex);
Common\ChartTypes\ErrorBarChart.cs (4)
343 linkedSeriesName = linkedSeriesName.Substring(0, valueTypeIndex); 1125 attribValue = attribValue.Substring(0, valueTypeIndex); 1658 typeName = typeName.Substring(1, typeName.Length - 2); 1819 linkedSeriesName = linkedSeriesName.Substring(0, valueTypeIndex);
Common\ChartTypes\KagiChart.cs (1)
292attrValue = attrValue.Substring(0, attrValue.Length - 1);
Common\ChartTypes\PointAndFigureChart.cs (1)
381attrValue = attrValue.Substring(0, attrValue.Length - 1);
Common\ChartTypes\RenkoChart.cs (1)
308 attrValue = attrValue.Substring(0, attrValue.Length - 1);
Common\DataManager\DataPoint.cs (3)
366 otherAttributeNames[index] = otherAttributeNames[index].Substring(0, equalSignIndex); 379 otherFieldNames[index] = otherFieldNames[index].Substring(0, bracketIndex); 2616attributeName = result.Substring(attributeNameStartIndex, keyEndIndex - attributeNameStartIndex - 1);
Common\DataManager\DataSeries.cs (3)
1223 yValueIndex = int.Parse(result.Substring(keyEndIndex + 1, 1), CultureInfo.InvariantCulture); 1237 format = result.Substring(keyEndIndex, formatEnd - keyEndIndex).Trim('{', '}'); 1344 format = result.Substring(keyEndIndex, formatEnd - keyEndIndex).Trim('{', '}');
Common\General\Axis.cs (2)
4693newText.Substring(0, (newText.Length) / 2 - index) + 4701newText.Substring(0, (newText.Length) / 2 + index) +
Common\General\Chart.cs (1)
3590 webFormUrl = webFormUrl.Substring(0, slashIndex + 1);
Common\General\LegendColumns.cs (1)
1849 resultString = resultString.Substring(0, charIndex) + "\n" +
Common\Utilities\ImageLoader.cs (1)
226string resourceRootName = imageURL.Substring(0, columnIndex);
Common\Utilities\ValueConverter.cs (1)
86 if(bracketIndex >= 1 && convertionFormat.Substring(bracketIndex - 1, 1) == "{")
Common\Utilities\XmlSerializer.cs (6)
558 val = val.Substring(0, commaIndex); 566 standardData = standardData.Substring(0, charIndex); 577 standardData = standardData.Substring(0, charIndex); 1034 if(objectName.Substring(0, itemInfo.name.Length) == itemInfo.name) 1047 if(objectName.Substring(objectName.Length - itemInfo.name.Length, itemInfo.name.Length) == itemInfo.name) 1233 classInfo.name = item.Substring(0, pointIndex).Trim();
WinForm\ChartWinControl.cs (1)
1886 buildNumber = buildNumber.Substring(0, versionIndex);
System.Workflow.Activities (39)
Common\CompModHelpers.cs (6)
73keyPath = keyPath.Substring(0, keyPath.LastIndexOf("\\")); 460string scopeID = inputName.Substring(0, indexOfDot); 483namespaceName = fullQualifiedName.Substring(0, indexOfDot); 960interfaceName = methodName.Substring(0, methodName.LastIndexOf('.')); 1084currentAtivityName = activityName.Substring(0, indexOfDot); 1417currentAtivityName = activityName.Substring(0, indexOfDot);
Common\DelegateTypeInfo.cs (1)
97paramType = paramType.Assembly.GetType(paramType.FullName.Substring(0, paramType.FullName.Length - 1), true);
Common\TypeSystemHelpers.cs (10)
80typeName = inputTypeName.Substring(0, startIndex) + inputTypeName.Substring(endIndex + 1); 82string bracketContent = inputTypeName.Substring(startIndex + 1, endIndex - startIndex - 1).Trim(); 113parameters[loop] = parameters[loop].Substring(1, parameters[loop].Length - 2); 123typeName = inputTypeName.Substring(0, endIndex) + inputTypeName.Substring(endIndex + 1); 124elemantDecorator = inputTypeName.Substring(endIndex, 1); 217string partName = parts[index].Substring(0, indexOfEquals).Trim().ToLowerInvariant(); 236thatToken[i] = Byte.Parse(partValue.Substring(i * 2, 2), NumberStyles.HexNumber, CultureInfo.InvariantCulture); 306typeName = typeName.Substring(0, indexOfSpecialChar); 396formattedType = formattedType.Substring(0, indexOfSpecialChar); 400formattedType = formattedType.Substring(0, indexOfSpecialChar);
Designers\StateDesigner.cs (1)
2762string nameSpace = path.Substring(0, index);
Rules\CodeDomDecompiler.cs (1)
307typeName = typeName.Substring(0, tickIndex);
Rules\Design\Dialogs\IntellisenseTextBox.cs (11)
90StringBuilder projectedValue = new StringBuilder(currentValue.Substring(0, selectionStart)); 105UpdateIntellisenceDropDown(projectedValue.ToString().Substring(0, selectionStart + 1)); 121ShowToolTip(selectionStart, projectedValue.ToString().Substring(0, selectionStart + 1)); 129UpdateIntellisenceDropDown(projectedValue.ToString().Substring(0, selectionStart + 1)); 148StringBuilder removedString = new StringBuilder(currentValue.Substring(selectionStart, selectionLength)); 150StringBuilder projectedValue = new StringBuilder(currentValue.Substring(0, selectionStart)); 159UpdateIntellisenceDropDown(this.Text.Substring(0, selectionStart - CurrentPrefix.Length)); 182UpdateAutoCompleteSelection(CurrentPrefix.Substring(0, CurrentPrefix.Length - 1)); 323string prefix = this.Text.Substring(0, prefixEnd); 325string suffix = this.Text.Substring(suffixStart, this.Text.Length - suffixStart); 595string textTillCaret = this.Text.Substring(0, this.SelectionStart);
Rules\Executor.cs (5)
527string stripDependency = dependency.Substring(0, dependency.Length - 2); 529string stripSideEffect = sideEffect.Substring(0, sideEffect.Length - 1); 554string stripSideEffect = sideEffect.Substring(0, sideEffect.Length - 1); 557stripDependency = stripDependency.Substring(0, stripDependency.Length - 1); 574string stripDependency = dependency.Substring(0, dependency.Length - 2);
Rules\Parser\Symbol.cs (1)
188name = type.Name.Substring(0, tickIx);
Rules\RuleAttributes.cs (1)
210paramName = suffix.Substring(0, firstSlash);
Rules\RuleValidation.cs (1)
3731arg.BaseType = arg.BaseType.Substring(1, arg.BaseType.Length - 2);
WebServiceReceive.cs (1)
699namespaceName = rootActivity.GetType().FullName.Substring(0, rootActivity.GetType().FullName.LastIndexOf('.'));
System.Workflow.ComponentModel (69)
AuthoringOM\Activity.cs (1)
2166subPath = dottedPath.Substring(0, indexOfDot);
AuthoringOM\Bind.cs (4)
759path = ((indexOfSeparator != -1)) ? path.Substring(0, indexOfSeparator) : path; 1220arg = argName.Substring(1, argName.Length - 2).Trim(); 1867string name = this.pathValue.Substring(start, this.index - start).Trim(); 1891string name = this.pathValue.Substring(start, this.index - start - 1).Trim();
AuthoringOM\Compiler\PDBReader.cs (1)
121fileLocation = url.Substring(0, (int)urlLength - 1);
AuthoringOM\Compiler\TypeSystem\AttributeInfo.cs (3)
166returnValue = returnValue.Substring(0, returnValue.Length - 1); 169returnValue = returnValue.Substring(2, returnValue.Length - 2); 171returnValue = returnValue.Substring(1, returnValue.Length - 1);
AuthoringOM\Compiler\TypeSystem\DesignTimeType.cs (4)
295idx = name.Substring(0, idx).LastIndexOfAny(nameSeparators); 317return this.fullName.Substring(0, this.fullName.Length - Name.Length - 1); 597elementType = ResolveType(fullName.Substring(0, elementCharPosition)); 693nestedName = nestedName.Substring(0, indexOfLastDot) + "+" + nestedName.Substring(indexOfLastDot + 1);
AuthoringOM\Compiler\TypeSystem\Helper.cs (1)
293typeName = typeName.Substring(1, typeName.Length - 1);
AuthoringOM\Compiler\TypeSystem\TypeProvider.cs (1)
382typeName = name.Substring(0, indexOfComma);
AuthoringOM\Compiler\Validation\BindValidator.cs (2)
632memberName = memberName.Substring(0, indexOfSeparator); 656string firstIndexerPart = indexerPart.Substring(0, closingBracketIndex + 1); //strip potential long path like Item[0].Foo
AuthoringOM\Compiler\XomlCompiler.cs (2)
958string substring = source.Substring(begin, end - begin); 970string substring = source.Substring(begin, end - begin);
AuthoringOM\Compiler\XomlCompilerHelpers.cs (3)
121fileName = fileName.Substring(0, fileName.Length - ".designer.cs".Length) + ".cs"; 123fileName = fileName.Substring(0, fileName.Length - ".designer.vb".Length) + ".vb"; 309compilerSwitchValue = options.Substring(switchValueStart, switchValueLength);
AuthoringOM\ComponentFactoryHelpers.cs (2)
179typeFullName = typeName.Substring(0, squareBracketCloseIndex + 1); 185typeFullName = typeName.Substring(0, commaIndex);
AuthoringOM\Design\ActivityDesigner.cs (5)
768string activityName = (Activity.Name.Length > MaximumIdentifierLength) ? Activity.Name.Substring(0, MaximumIdentifierLength) + "..." : Activity.Name; 780tipText = (tipText.Length > MaximumDescriptionLength) ? tipText.Substring(0, MaximumDescriptionLength) + "..." : tipText; 807ruleName = (ruleName.Length > MaximumIdentifierLength) ? ruleName.Substring(0, MaximumIdentifierLength) + "..." : ruleName; 810ruleDescription = (ruleDescription.Length > MaximumDescriptionLength) ? ruleDescription.Substring(0, MaximumDescriptionLength) + "..." : ruleDescription; 2000string designerTypeName = (index >= 0) ? designerAttribute.DesignerTypeName.Substring(0, index) : designerAttribute.DesignerTypeName;
AuthoringOM\Design\ComponentSerializationService.cs (1)
394name = name.Substring(0, index);
AuthoringOM\Design\DesignerHelpers.cs (1)
1493string nameSpace = path.Substring(0, index);
AuthoringOM\Design\DesignerView.cs (1)
58this.text = ((text.Length > MaxViewName)) ? text.Substring(0, MaxViewName) + "..." : text;
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (4)
997string oldMemberName = oldLabel.Substring(0, oldLabel.IndexOf("[", StringComparison.Ordinal)); 998string newMemberName = newLabel.Substring(0, newLabel.IndexOf("[", StringComparison.Ordinal)); 1153string indexPropertyName = currentPathInfo.Path.Substring(0, indexOfOpenBracket); 1212fullName = fullName.Substring(0, indexOfSeparator);
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (1)
955nsName = typeName.Substring(0, lastIndexOfDot);
AuthoringOM\Design\PropertyDescriptors.cs (2)
120newClassName = host.RootComponentClassName.Substring(0, indexOfDot + 1) + name; 547fieldName = fieldName.Substring(0, indexOfDot); //path is a nested field access
AuthoringOM\Design\WinOEToolBoxItem.cs (2)
38name = type.Name.Substring(0, type.Name.Length - ActivitySuffix.Length); 146displayName = displayName.Substring(0, displayName.Length - ActivitySuffix.Length);
AuthoringOM\Design\XomlDesignerLoader.cs (1)
896fullPropertyName = (fullPropertyName.Length > fullComponentName.Length) ? fullPropertyName.Substring(fullComponentName.Length + 1, fullPropertyName.Length - fullComponentName.Length - 1) + "." + propDesc.Name : string.Empty;
AuthoringOM\Serializer\DependencyObjectCodeDomSerializer.cs (1)
191ownerTypeName = ((string)key).Substring(0, indexOfDot);
AuthoringOM\Serializer\WorkflowMarkupSerializationManager.cs (1)
317typeName = typeName.Substring(0, commaIndex);
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (6)
2061string ownerTypeName = fullPropertyName.Substring(0, separatorIndex); 2484string typename = attrValue.Substring(1, argIndex - 1).Trim(); 2485string arguments = attrValue.Substring(argIndex + 1, attrValue.Length - (argIndex + 1)); 2491prefix = typename.Substring(0, typeIndex); 2855builder.Append(value.Substring(0, i)); 3125extensionName = extensionName.Substring(0, extensionName.Length - StandardXomlKeys.MarkupExtensionSuffix.Length);
AuthoringOM\Serializer\WorkflowMarkupSerializerMapping.cs (1)
272clrNamespace = clrNamespace.Substring(0, index).Trim();
AuthoringOM\Serializer\XamlInterfaces.cs (1)
183prefix = typename.Substring(0, typeIndex);
Shared\CompModHelpers.cs (6)
71keyPath = keyPath.Substring(0, keyPath.LastIndexOf("\\")); 458string scopeID = inputName.Substring(0, indexOfDot); 481namespaceName = fullQualifiedName.Substring(0, indexOfDot); 958interfaceName = methodName.Substring(0, methodName.LastIndexOf('.')); 1082currentAtivityName = activityName.Substring(0, indexOfDot); 1415currentAtivityName = activityName.Substring(0, indexOfDot);
Shared\DelegateTypeInfo.cs (1)
96paramType = paramType.Assembly.GetType(paramType.FullName.Substring(0, paramType.FullName.Length - 1), true);
Shared\TypeSystemHelpers.cs (10)
79typeName = inputTypeName.Substring(0, startIndex) + inputTypeName.Substring(endIndex + 1); 81string bracketContent = inputTypeName.Substring(startIndex + 1, endIndex - startIndex - 1).Trim(); 112parameters[loop] = parameters[loop].Substring(1, parameters[loop].Length - 2); 122typeName = inputTypeName.Substring(0, endIndex) + inputTypeName.Substring(endIndex + 1); 123elemantDecorator = inputTypeName.Substring(endIndex, 1); 216string partName = parts[index].Substring(0, indexOfEquals).Trim().ToLowerInvariant(); 235thatToken[i] = Byte.Parse(partValue.Substring(i * 2, 2), NumberStyles.HexNumber, CultureInfo.InvariantCulture); 305typeName = typeName.Substring(0, indexOfSpecialChar); 395formattedType = formattedType.Substring(0, indexOfSpecialChar); 399formattedType = formattedType.Substring(0, indexOfSpecialChar);
System.Workflow.Runtime (3)
System\Activities\Statements\InteropExecutor.cs (1)
475string truncatedName = input.Key.Substring(0, input.Key.Length - suffixLength);
Tracking\PropertyHelper.cs (2)
301string idx = fullName.Substring(startPos + 1, endPos - 1 - startPos); 302name = fullName.Substring(0, startPos);
System.WorkflowServices (2)
System\Workflow\Activities\ContractType.cs (2)
52idx = this.name.Substring(0, idx).LastIndexOfAny(nameSeparators); 151return this.fullName.Substring(0, this.fullName.Length - Name.Length - 1);
System.Xml (48)
System\Xml\Core\XmlCharCheckingWriter.cs (1)
163writer.WriteCData( text.Substring( 0, i + 2 ) );
System\Xml\Core\XmlCharCheckingWriterAsync.cs (1)
82await writer.WriteCDataAsync( text.Substring( 0, i + 2 ) ).ConfigureAwait(false);
System\Xml\Core\XmlTextReaderImpl.cs (2)
8602return value.Substring( startPos, i - startPos ); 8620return ( startPos == 0 ) ? value : value.Substring( startPos, len - startPos );
System\Xml\Dom\XmlCharacterData.cs (1)
76return data.Substring( offset, count );
System\Xml\Dom\XmlEntityReference.cs (1)
166buf = baseURI.Substring(0, nCount);
System\Xml\Dom\XmlNode.cs (1)
1080prefix = name.Substring(0, colonPos);
System\Xml\Schema\DtdParser.cs (3)
297schemaInfo.DocTypeName = new XmlQualifiedName( nameTable.Add( docTypeName.Substring( 0, colonPos ) ), 3369return value.Substring(startPos, i - startPos); 3387return (startPos == 0) ? value : value.Substring(startPos, len - startPos);
System\Xml\Schema\XmlAtomicValue.cs (1)
343return value.Substring(0, colonOffset);
System\Xml\Schema\XmlSchemaDataType.cs (2)
321canonicalUri = nameTable.Add(uri.Substring(0, offset) + uri.Substring(offset, uri.Length - offset).ToUpper(CultureInfo.InvariantCulture));
System\Xml\Serialization\CodeIdentifier.cs (3)
171EscapeKeywords(name.Substring(0, nameEnd), csharp, sb); 227identifier = identifier.Substring(0, identifier.Length - 2); 247sb.Append(originalIdentifier.Substring(separator, 1));
System\Xml\Serialization\Mappings.cs (1)
104return new XmlQualifiedName(XmlConvert.EncodeLocalName(name.Substring(colon + 1)), XmlConvert.EncodeLocalName(name.Substring(0, colon))).ToString();
System\Xml\Serialization\Types.cs (3)
891name = name.Substring(0, arity); 1213ns = type.Substring(0, nsLen); 1220name = type.Substring(nsLen + 1, nameLen - nsLen - 1);
System\Xml\Serialization\XmlReflectionImporter.cs (3)
1739if (xmlName.Substring(0, xmlName.Length-1) == anyNs) { 1747string choiceNs = colon < 0 ? choiceMapping.Namespace : xmlName.Substring(0, colon); 1848string choiceNs = colon < 0 ? "" : choiceId.Substring(0, colon);
System\Xml\Serialization\XmlSerializationReader.cs (3)
785attr.Value = r.LookupNamespace(attr.Value.Substring(0, colon)) + ":" + attr.Value.Substring(colon + 1); 1115string prefix = colon < 0 ? null : value.Substring(0, colon); 1803xsiTypeNs = Reader.LookupNamespace((colon >= 0) ? value.Substring(0, colon) : "");
System\Xml\Serialization\XmlSerializationReaderILGen.cs (4)
2772LocalBuilder localA = ilg.GetLocal(source.Substring(0, index)); 2833LocalBuilder localA = ilg.GetLocal(source.Substring(0, index)); 3557ilg.LoadArrayElement(idsLoc, Int32.Parse(source.Substring(14, source.Length - 16), CultureInfo.InvariantCulture)); 3571ilg.LoadArrayElement(idsLoc, Int32.Parse(id.Substring(4, id.Length - 5), CultureInfo.InvariantCulture));
System\Xml\Serialization\XmlSerializationWriter.cs (4)
851string prefix = localName.Substring(0, colon); 877string prefix = localName.Substring(0, colon); 3206string choiceNs = colon < 0 ? choiceMapping.Namespace : xmlName.Substring(0, colon); 3479string assemblyName = (iComma>-1)?assemblyFullName.Substring(0, iComma):assemblyFullName;
System\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
2187string choiceNs = colon < 0 ? choiceMapping.Namespace : xmlName.Substring(0, colon);
System\Xml\ValidateNames.cs (5)
301prefix = s.Substring(0, colonOffset); 331localName = s.Substring(0, len); 346localName = s.Substring(offset, lenLocal); 617prefix = name.Substring(0, colonPos); 619lname = name.Substring(colonPos, name.Length - colonPos);
System\Xml\XmlComplianceUtil.cs (2)
48return value.Substring( startPos, i - startPos ); 77return value.Substring( startPos, len - startPos );
System\Xml\XPath\Internal\StringFunctions.cs (2)
130return (idx < 1) ? string.Empty : s1.Substring(0, idx); 165return str1.Substring((int)num ,(int)num1);
System\Xml\XPath\Internal\XPathScanner.cs (4)
255 return XmlConvert.ToXPathDouble(this.xpathExpr.Substring(start, len)); 266 return XmlConvert.ToXPathDouble(this.xpathExpr.Substring(start, len)); 282return this.xpathExpr.Substring(start, len); 310return this.xpathExpr.Substring(start, len);
System.Xml.Linq (4)
System\Xml\Linq\XLinq.cs (4)
425return names.Add(new XName(this, localName.Substring(index, count))); 454refNamespace = namespaces.Add(new WeakReference(new XNamespace(namespaceName.Substring(index, count)))); 8988XNamespace ns = e.GetNamespaceOfPrefix(qualifiedName.Substring(0, i)); 8990localName = qualifiedName.Substring(i + 1, qualifiedName.Length - i - 1);
UIAutomationClient (2)
System\Windows\Automation\Automation.cs (2)
124return full.Substring(0, full.Length - 8); // Slice away "Property" suffix 138return full.Substring(0, full.Length - 26); // Slice away "InvokePatternIdentifiers.Pattern" to get just "Invoke"
UIAutomationClientsideProviders (15)
MS\Internal\AutomationProxies\Accessible.cs (1)
1539return bstr.Substring(0, nulIndex);
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (2)
226rangeText = rangeText.Substring(Start, Length); 321return text.Substring(Start, maxLength >= 0 ? Math.Min(Length, maxLength) : Length);
MS\Internal\AutomationProxies\WindowsListBox.cs (1)
763text = text.Substring(0, iPos);
MS\Internal\AutomationProxies\WindowsListViewItemCheckBox.cs (1)
118return name.Length < Misc.MaxLengthNameProperty ? name : name.Substring(0, Misc.MaxLengthNameProperty);
MS\Internal\AutomationProxies\WindowsListViewSubItem.cs (1)
208return name.Length < Misc.MaxLengthNameProperty ? name : name.Substring(0, Misc.MaxLengthNameProperty);
MS\Internal\AutomationProxies\WindowsMenu.cs (7)
1334return menuRawText.Substring(0, pos); 1356return menuRawText.Substring(0, SkipMenuSpaceChar(menuText, pos)); 1366return menuRawText.Substring(0, SkipMenuSpaceChar(menuText, pos)); 1384return menuRawText.Substring(0, SkipMenuSpaceChar(menuText, pos)); 2470return string.Format(CultureInfo.CurrentCulture, "{0}{1}{2}", sCanonicalsKeyword, menuText.Substring(pos + cKeyChars + 1, cMenuChars - (pos + cKeyChars + 2)), Char.ToUpper(menuText[cMenuChars - 1], CultureInfo.InvariantCulture)); 2476return sCanonicalsKeyword + menuRawText.Substring(pos + cKeyChars + 1, cMenuChars - (pos + cKeyChars + 1)); 2498int iKey = int.Parse(menuText.Substring(pos + 1, cChars - (pos + 1)), CultureInfo.InvariantCulture);
MS\Internal\AutomationProxies\WindowsRichEdit.cs (2)
579sbText.Append(text.Substring(start, embeddedObjectOffset - start)); 597sbText.Append(text.Substring(start, end - start));
WindowsBase (22)
Base\MS\Internal\AvTrace.cs (1)
434sb.Append(s.Substring(index, formatIndex - index + 1));
Base\MS\Internal\ContentType.cs (4)
114ParseTypeAndSubType(contentType.Substring(0, semiColonIndex)); 479ValidateToken(parameterAndValue.Substring(0, equalSignIndex)), 480ValidateQuotedStringOrToken(parameterAndValue.Substring(parameterStartIndex, parameterValueLength))); 588ValidateQuotedText(parameterValue.Substring(1, parameterValue.Length-2));
Base\MS\Internal\IO\Packaging\CompoundFile\RightsManagementEncryptionTransform.cs (1)
1152string authenticationTypeString = typePrefixedUserName.Substring(0, colonIndex);
Base\MS\Internal\IO\Packaging\InternalRelationshipCollection.cs (1)
690return String.Concat("R", Guid.NewGuid().ToString("N").Substring(0, _timestampLength));
Base\MS\Internal\IO\Packaging\PartBasedPackageProperties.cs (2)
706if (!Object.ReferenceEquals(ns, reader.LookupNamespace(typeValue.Substring(0, index))) 707|| String.CompareOrdinal(name, typeValue.Substring(index + 1, typeValue.Length - index - 1)) != 0)
Base\MS\Internal\IO\Packaging\PieceNameHelper.cs (1)
324parseResults.PrefixName = path.Substring(0, position);
Base\MS\Internal\IO\Packaging\XmlSignatureManifest.cs (1)
616uri = PackUriHelper.ValidatePartUri(new Uri(attrValue.Substring(0, index), UriKind.Relative));
Base\System\IO\Packaging\PackUriHelper.cs (4)
129absolutePackageUri = absolutePackageUri.Substring(0, absolutePackageUri.IndexOf('#')); 463partName = partName.Substring(0, partName.Length - file.Length); 521path = path.Substring(0, path.Length - partNameWithoutExtension.Length - _relationshipPartExtensionName.Length - 1); 526path = path.Substring(0, path.Length - _relationshipPartSegmentName.Length); // Removing rels segment
Base\System\Windows\DependencyPropertyValueSerializer.cs (1)
69string typeName = value.Substring(0, dotIndex - 1);
Base\System\Windows\Input\ModifierKeysConverter.cs (1)
164string token = (offset < 0) ? modifiersToken : modifiersToken.Substring(0, offset);
Base\System\Windows\Markup\XmlCompatibilityReader.cs (2)
980string prefix = pair.Substring(0, colonIndex); 981string elementName = pair.Substring(colonIndex + 1, length - 1 - colonIndex);
Shared\MS\Internal\TokenizerHelper.cs (1)
122return _str.Substring(_currentTokenIndex,_currentTokenLength);
Shared\MS\Win32\HwndWrapper.cs (2)
114appName = AppDomain.CurrentDomain.FriendlyName.Substring(0, 128); 120threadName = Thread.CurrentThread.Name.Substring(0, 64);
WsatConfig (3)
CommandLine\ArgumentsParser.cs (1)
104return arg.Substring(0, separator).Trim().ToLowerInvariant();
Configuration\CertificateManager.cs (2)
148issuer = constraint.Substring(0, separatorIndex); 149subjectName = constraint.Substring(separatorIndex + 1, constraint.Length - separatorIndex - 1);
XamlBuildTask (4)
Microsoft\Build\Tasks\Xaml\ClassImporter.cs (1)
536string classNamespace = fullClassName.Substring(0, lastIndex);
Microsoft\Build\Tasks\Xaml\XamlBuildTaskServices.cs (3)
393@namespace.Substring(0, assemblyIndex), localAssemblyName); 487: @namespace.Substring( 572ns = typeNs.Substring(nsIndex, nsLength);