933 references to Trim
mscorlib (34)
system\__filters.cs (2)
117str = str.Trim(); 142str = str.Trim();
system\AppContext\AppContextDefaultValues.cs (3)
98identifier = components[0].Trim(); 122string key = keyValuePair[0].Trim(); 123string value = keyValuePair[1].Trim();
system\double.cs (1)
281String sTrim = s.Trim();
system\enum.cs (2)
385value = value.Trim(); 434values[i] = values[i].Trim(); // We need to remove whitespace characters
system\globalization\datetimeformatinfo.cs (1)
2428string sep = this.TimeSeparator.Trim();
system\globalization\timespanparse.cs (1)
644input = input.Trim();
system\guid.cs (1)
378String guidString = g.Trim(); //Remove Whitespace
system\io\isolatedstorage\isolatedstoragefile.cs (11)
694if (path.Trim().Length == 0) { 735if (path.Trim().Length == 0) { 776if (path.Trim().Length == 0) { 818if (sourceFileName.Trim().Length == 0) { 822if (destinationFileName.Trim().Length == 0) { 840if (sourceFileName.Trim().Length == 0) { 844if (destinationFileName.Trim().Length == 0) { 972if (sourceFileName.Trim().Length == 0) { 976if (destinationFileName.Trim().Length == 0) { 1038if (sourceDirectoryName.Trim().Length == 0) { 1042if (destinationDirectoryName.Trim().Length == 0) {
system\number.cs (2)
677String sTrim = value.Trim(); 954String sTrim = value.Trim();
system\runtime\interopservices\marshal.cs (1)
1371customManagedNamespace = customManagedNamespace.Trim();
system\runtime\remoting\configuration.cs (4)
745typeName = typeAssem.Substring(0, index).Trim(); 746assemName = typeAssem.Substring(index + 1).Trim(); 772typeName = value.Substring(0, index).Trim(); 773assemName = value.Substring(index + 1).Trim();
system\runtime\remoting\objref.cs (1)
173assemName = typeAndAssembly.Substring(index + 1).Trim();
system\runtime\versioning\binarycompatibility.cs (3)
384identifier = components[0].Trim(); 408string key = keyValuePair[0].Trim(); 409string value = keyValuePair[1].Trim();
system\single.cs (1)
249String sTrim = s.Trim();
PresentationBuildTasks (24)
Base\System\Windows\Markup\XmlCompatibilityReader.cs (2)
965foreach (string pair in content.Trim().Split(' ')) 1013foreach (string prefix in prefixes.Trim().Split(' '))
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (7)
1522if (!NameValidationHelper.IsValidIdentifierName(nsPart.Trim())) 1546string handler = handlerName.Trim(); 1886cdce.MethodName = eventHandler.Trim() + (subClassed ? HELPER : string.Empty); 1996cmmEventHandler.Name = mei.eventHandler.Trim(); 2185if (codeText == null || codeText.Trim().Length == 0) 2204Type currTypeArg = parserContext.XamlTypeMapper.GetTypeArgsType(_typeArgsList[i].Trim(), 2227_typeArgsList[i].Trim(),
BuildTasks\Ms\Internal\MarkupCompiler\ParserExtension.cs (4)
445_class = xmlReader.Value.Trim(); 480_subClass = xmlReader.Value.Trim(); 495_classModifier = xmlReader.Value.Trim(); 506_isInternalRoot = string.Compare("public", xmlReader.Value.Trim(), StringComparison.OrdinalIgnoreCase) != 0;
Framework\System\Windows\Markup\BamlRecords.cs (1)
2612FieldInfo enumField = ValueType.GetField(enumValue.Trim(), BindingFlags.Static | BindingFlags.Public | BindingFlags.IgnoreCase);
Framework\System\Windows\Markup\MarkupExtensionParser.cs (2)
545propIdName = propIdName.Trim(); 1381propertyName = propertyName.Trim();
Framework\System\Windows\Markup\StyleXamlParser.cs (2)
1344xamlPropertyNode.SetValue(xamlPropertyNode.Value.Trim()); 1375xamlPropertyNode.SetValue(xamlPropertyNode.Value.Trim());
Framework\System\Windows\Markup\TemplateXamlParser.cs (2)
1527xamlPropertyNode.SetValue(xamlPropertyNode.Value.Trim()); 1565xamlPropertyNode.SetValue(xamlPropertyNode.Value.Trim());
Framework\System\Windows\Markup\XamlBrushSerializer.cs (2)
82return SerializeOn(writer, stringValue.Trim()); 145stringValue = stringValue.Trim();
Framework\System\Windows\Markup\XamlReaderHelper.cs (1)
3902text = text.Trim();
Framework\System\Windows\Markup\XamlTypeMapper.cs (1)
3849keyString = keyString.Trim();
PresentationCore (18)
Core\CSharp\MS\Internal\FontCache\FamilyCollection.cs (1)
499familyName = familyName.Trim();
Core\CSharp\System\Windows\Diagnostics\VisualDiagnostics.cs (1)
260value = (value ?? string.Empty).Trim().ToLowerInvariant();
Core\CSharp\System\Windows\DurationConverter.cs (1)
73stringValue = stringValue.Trim();
Core\CSharp\System\Windows\Ink\StrokeCollectionConverter.cs (1)
95text = text.Trim();
Core\CSharp\System\Windows\Input\Command\KeyGestureConverter.cs (3)
92string fullName = ((string)source).Trim(); 104displayString = fullName.Substring(index + 1).Trim(); 105fullName = fullName.Substring(0, index).Trim();
Core\CSharp\System\Windows\Input\Command\MouseActionConverter.cs (1)
87string mouseActionToken = ((string)source).Trim();
Core\CSharp\System\Windows\Input\Command\MouseGestureConverter.cs (1)
65string fullName = ((string)source).Trim();
Core\CSharp\System\Windows\Input\CursorConverter.cs (1)
108string text = ((string)value).Trim();
Core\CSharp\System\Windows\Input\InputScopeConverter.cs (1)
114stringSource = stringSource.Trim();
Core\CSharp\System\Windows\Input\InputScopeNameConverter.cs (1)
101stringSource = stringSource.Trim();
Core\CSharp\System\Windows\Media\Animation\KeyTimeConverter.cs (1)
82stringValue = stringValue.Trim();
Core\CSharp\System\Windows\Media\Animation\RepeatBehaviorConverter.cs (1)
78stringValue = stringValue.Trim();
Core\CSharp\System\Windows\Media\KnownColors.cs (2)
238string trimmedString = colorString.Trim(); 682string argbUpper = argbString.Trim().ToUpper(System.Globalization.CultureInfo.InvariantCulture);
Core\CSharp\System\Windows\Media\Parsers.cs (1)
109tokens = tokens.Trim();
Core\CSharp\System\Windows\Media\SolidColorBrush.cs (1)
130stringValue = stringValue.Trim();
PresentationFramework (44)
parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (3)
98identifier = components[0].Trim(); 122string key = keyValuePair[0].Trim(); 123string value = keyValuePair[1].Trim();
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (2)
540if (xstr != null && !String.IsNullOrEmpty(xstr.Trim()) && ystr != null && !String.IsNullOrEmpty(ystr.Trim()))
src\Framework\MS\Internal\AppModel\AssemblyFilter.cs (2)
119return ((sb.ToString()).ToLower(System.Globalization.CultureInfo.InvariantCulture)).Trim(); 173_assemblyList.Value.Add(assemblyName.ToLower(System.Globalization.CultureInfo.InvariantCulture).Trim());
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (2)
1091windowTitle = windowTitle.Trim(); 1101pageTitle = pageTitle.Trim();
src\Framework\MS\Internal\Data\ObjectRef.cs (1)
134_name = name.Trim();
src\Framework\MS\Internal\Data\PathParser.cs (2)
86_path = (path != null) ? path.Trim() : String.Empty; 216string name = _path.Substring(start, _index - start).Trim();
src\Framework\System\Windows\Annotations\Annotation.cs (3)
665typeName[0] = typeName[0].Trim(); 675typeName[0] = typeName[0].Trim(); 676typeName[1] = typeName[1].Trim();
src\Framework\System\Windows\Controls\DataGridLengthConverter.cs (1)
208string goodString = s.Trim().ToLowerInvariant();
src\Framework\System\Windows\Controls\TextBlock.cs (1)
2935if (!whitespacesIgnorable || text.Trim().Length > 0)
src\Framework\System\Windows\Documents\FixedSchema.cs (2)
438attrValue = attrValue.Trim(); 442attrValue = attrValue.Trim();
src\Framework\System\Windows\Documents\RtfToXamlReader.cs (1)
5803string textdata = Xaml.Trim();
src\Framework\System\Windows\Documents\TextElement.cs (1)
942if (text.Trim().Length > 0)
src\Framework\System\Windows\Documents\WinRTSpellerInterop.cs (1)
654string[] matches = Regex.Split(line.Trim(), regexPattern, regexOptions);
src\Framework\System\Windows\Documents\ZoomPercentageConverter.cs (1)
165zoomString = ((string)value).Trim();
src\Framework\System\Windows\EventSetterHandlerConverter.cs (1)
82handlerName = handlerName.Trim();
src\Framework\System\Windows\Input\Command\CommandConverter.cs (1)
242localName = ((string)source).Trim();
src\Framework\System\Windows\Input\Command\CommandValueSerializer.cs (2)
157commandName = value.Substring(dotIndex + 1).Trim(); 162commandName = value.Trim();
src\Framework\System\Windows\LengthConverter.cs (1)
194string valueString = s.Trim();
src\Framework\System\Windows\Markup\BamlRecordReader.cs (2)
1506paramString.Trim(), 4052if (FindResourceInParserStack(attribValue.Trim(), false /*allowDeferredResourceReference*/, false /*mustReturnDeferredResourceReference*/) == DependencyProperty.UnsetValue)
src\Framework\System\Windows\Markup\BamlRecords.cs (1)
2612FieldInfo enumField = ValueType.GetField(enumValue.Trim(), BindingFlags.Static | BindingFlags.Public | BindingFlags.IgnoreCase);
src\Framework\System\Windows\Markup\DependencyPropertyConverter.cs (1)
151value = value.Trim();
src\Framework\System\Windows\Markup\MarkupExtensionParser.cs (2)
545propIdName = propIdName.Trim(); 1381propertyName = propertyName.Trim();
src\Framework\System\Windows\Markup\RoutedEventConverter.cs (1)
53routedEventName = routedEventName.Trim();
src\Framework\System\Windows\Markup\RoutedEventValueSerializer.cs (1)
68string name = value.Substring(index + 1).Trim();
src\Framework\System\Windows\Markup\XamlBrushSerializer.cs (1)
80return SolidColorBrush.SerializeOn(writer, stringValue.Trim());
src\Framework\System\Windows\Markup\XamlFigureLengthSerializer.cs (1)
198string goodString = s.Trim().ToLowerInvariant();
src\Framework\System\Windows\Markup\XamlGridLengthSerializer.cs (1)
199string goodString = s.Trim().ToLowerInvariant();
src\Framework\System\Windows\Markup\XamlTypeMapper.cs (1)
3849keyString = keyString.Trim();
src\Framework\System\Windows\PropertyPath.cs (2)
583propertyName = name.Substring(lastIndex + 1).Trim(); 584string ownerName = name.Substring(0, lastIndex).Trim();
src\Framework\System\Windows\Standard\Debug.cs (1)
169if (value.Trim().Length == 0)
src\Framework\System\Windows\Standard\Verify.cs (1)
91if ("" == value.Trim())
System (60)
compmod\microsoft\csharp\csharpcodeprovider.cs (2)
598sb.Append("/R:\"").Append(coreAssemblyFileName.Trim()).Append("\" "); 3201string lowerCaseString = s.ToLower( CultureInfo.InvariantCulture).Trim();
compmod\microsoft\visualbasic\VBCodeProvider.cs (1)
579string asmblFilePath = coreAssemblyFileName.Trim();
compmod\microsoft\win32\SystemEvents.cs (3)
1084companyName = companyName.Trim(); 1134productName = productName.Trim(); 1184productVersion = productVersion.Trim();
compmod\system\codedom\compiler\CodeDomConfigurationHandler.cs (2)
262languageList[i] = languageList[i].Trim(); 266extensionList[i] = extensionList[i].Trim();
compmod\system\codedom\compiler\CodeDOMProvider.cs (2)
72CompilerInfo compilerInfo = (CompilerInfo)Config._compilerLanguages[language.Trim()]; 81CompilerInfo compilerInfo = (CompilerInfo)Config._compilerExtensions[extension.Trim()];
compmod\system\componentmodel\basenumberconverter.cs (1)
86string text = ((string)value).Trim();
compmod\system\componentmodel\BooleanConverter.cs (1)
47string text = ((string)value).Trim();
compmod\system\componentmodel\CharConverter.cs (1)
62text = text.Trim();
compmod\system\componentmodel\DateTimeConverter.cs (1)
58string text = ((string)value).Trim();
compmod\system\componentmodel\DateTimeOffsetConverter.cs (1)
62string text = ((string)value).Trim();
compmod\system\componentmodel\design\PropertyTabAttribute.cs (2)
101className = tabClassNames[i].Substring(0, commaIndex).Trim(); 102assemblyName = tabClassNames[i].Substring(commaIndex + 1).Trim();
compmod\system\componentmodel\GuidConverter.cs (1)
57string text = ((string)value).Trim();
compmod\system\componentmodel\ReferenceConverter.cs (1)
58string text = ((string)value).Trim();
compmod\system\componentmodel\SyntaxCheck.cs (3)
29value = value.Trim(); 45value = value.Trim(); 63value = value.Trim();
compmod\system\componentmodel\TimeSpanConverter.cs (1)
59string text = ((string)value).Trim();
compmod\system\componentmodel\TypeConverter.cs (1)
43useCompatibleTypeConversion = bool.Parse(useCompatibleConfig.Trim());
net\System\Net\_AutoWebProxyScriptHelper.cs (1)
582IPAddressStrings[i] = IPAddressStrings[i].Trim();
net\System\Net\_DigestClient.cs (2)
581name = name.Trim().ToLower(CultureInfo.InvariantCulture); 1090return quotedString.Trim().Trim("\"".ToCharArray());
net\System\Net\_HeaderInfoTable.cs (4)
53tempStringCollection.Add(singleValue.Trim()); 67tempStringCollection.Add(singleValue.Trim()); 81string lastElement = attributeArray[attributeArray.Length - 1].Trim(); 84string lastAttribute = lastElement.Split('=')[0].Trim();
net\System\Net\_WebProxyDataBuilder.cs (6)
33addressString = addressString.Trim(); // Ignore white spaces in the proxy address string. 55bypassListString = bypassListString.Trim(); // Ignore white spaces in the bypass string. 117string schemeValue = proxyListStrings[i].Trim(); 133schemeValueStrings[0] = schemeValueStrings[0].Trim(); 134schemeValueStrings[1] = schemeValueStrings[1].Trim(); 245string trimmedBypassString = bypassString.Trim();
net\System\Net\cookie.cs (1)
974tokenString = tokenString.Trim();
net\System\Net\HttpListener.cs (1)
2213challenge = challenge.Trim();
net\System\Net\HttpListenerRequest.cs (2)
1268attrValue = headerValue.Substring(i+1, j-i-1).Trim(); 1279attrValue = headerValue.Substring(i, j-i).Trim();
net\System\Net\HttpWebResponse.cs (3)
212if (srchString.Trim().StartsWith("text/")) { 246m_CharacterSet = contentType.Substring(i,j - i).Trim(); 248m_CharacterSet = contentType.Substring(i).Trim();
net\System\Net\mail\MailAddressParser.cs (1)
313displayName = displayName.Trim();
net\System\Net\mail\SmtpClient.cs (2)
157host = host.Trim(); 222value = value.Trim();
net\System\Net\mail\SmtpDateTime.cs (2)
320string date = data.Substring(0, indexOfTimeZoneSeparator).Trim(); 335string timeZoneString = data.Substring(indexOfTimeZoneSeparator).Trim();
net\System\Net\WebSockets\WebSocketHelpers.cs (1)
260string currentRequestProtocol = requestProtocols[i].Trim();
parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (3)
98identifier = components[0].Trim(); 122string key = keyValuePair[0].Trim(); 123string value = keyValuePair[1].Trim();
services\monitoring\system\diagnosticts\Process.cs (1)
1951string fileName = executableFileName.Trim();
sys\system\runtime\versioning\FrameworkName.cs (6)
111if (identifier.Trim().Length == 0) { 119m_identifier = identifier.Trim(); 121m_profile = (profile == null) ? String.Empty : profile.Trim(); 147m_identifier = components[0].Trim(); 168string key = keyValuePair[0].Trim(); 169string value = keyValuePair[1].Trim();
System.Activities (7)
Microsoft\VisualBasic\Activities\VisualBasicImportReference.cs (1)
57this.import = value.Trim();
System\Activities\Debugger\DebugInfo.cs (2)
318value = value.Trim(); 453stringValue = stringValue.Trim().ToUpperInvariant();
System\Activities\WorkflowIdentity.cs (1)
304parser.match = identityString.Match(identity.Trim());
System\Activities\XamlIntegration\DynamicActivityXamlReader.cs (1)
490if (stringValue != null && stringValue.Trim().Length == 0)
System\Activities\XamlIntegration\InOutArgumentConverter.cs (1)
36Expression = this.expressionHelper.ConvertFromString(text.Trim(), context)
System\Activities\XamlIntegration\OutArgumentConverter.cs (1)
36Expression = this.expressionHelper.ConvertFromString(text.Trim(), context)
System.Activities.Core.Presentation (3)
System\Activities\Core\Presentation\FlowSwitchLink.cs (1)
276newValue = (T)((object)((string)((object)newValue)).Trim());
System\ServiceModel\Activities\Presentation\MessageQuerySetDesigner.xaml.cs (2)
304name = name.Trim(); 317name = name.Trim();
System.Activities.Presentation (18)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagStringConverter.cs (2)
38str = str.Trim(); 49string flagName = name.Trim();
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\ExtensibilityAccessor.cs (1)
267defaultProperty = defaultProperty == null ? null : defaultProperty.Trim();
System.Activities.Presentation\System\Activities\Presentation\Converters\VBIdentifierTrimConverter.cs (1)
20return ((string)value).Trim();
System.Activities.Presentation\System\Activities\Presentation\Expressions\ExpressionActivityEditor.cs (1)
165if (name != null && name.Trim().Length == 0)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (1)
355path = path.Trim();
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxItemLoader.cs (5)
65entry = entry.Trim(); 106toolName = toolDefinition[0].Trim(); 107assembly = toolDefinition[1].Trim(); 117string current = toolDefinition[i].Trim(); 137string current = toolDefinition[i].Trim();
System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (2)
253ValidationService.ErrorBuilder.AppendLine(message.Trim()); 255errorMessage = ValidationService.ErrorBuilder.ToString().Trim();
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
1721string valueAsString = value.ToString().Replace("%", "").Trim();
System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (1)
377this.lastInput = this.textBox.Text.Trim();
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (3)
200tempText = tempText.Trim(); 1391currentText = this.expressionEditorInstance.Text ?? this.expressionEditorInstance.Text.Trim(); 1395currentText = this.editingTextBox.Text ?? this.editingTextBox.Text.Trim();
System.ComponentModel.DataAnnotations (4)
DataAnnotations\RequiredAttribute.cs (1)
43return stringValue.Trim().Length != 0;
parent\parent\parent\parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (3)
98identifier = components[0].Trim(); 122string key = keyValuePair[0].Trim(); 123string value = keyValuePair[1].Trim();
System.Configuration (24)
System\Configuration\BaseConfigurationRecord.cs (1)
3800string trimmedConfigSource = configSource.Trim();
System\Configuration\ClientConfigPaths.cs (9)
459_companyName = _companyName.Trim(); 467_productName = _productName.Trim(); 473_productVersion = _productVersion.Trim(); 503_companyName = _companyName.Trim(); 510_productName = _productName.Trim(); 517_productVersion = _productVersion.Trim(); 542_productName = _productName.Trim(); 547_productName = mainType.Name.Trim(); 568_companyName = _companyName.Trim();
System\Configuration\ConfigurationElement.cs (1)
1369string attribToLockTrim = attribToLock.Trim();
System\Configuration\ConfigurationLockCollection.cs (2)
90string attribToLockTrim = name.Trim(); 319string attribTrim = name.Trim();
System\Configuration\GenericEnumConverter.cs (1)
57if (value != value.Trim()) { // throw if the value has whitespace
System\Configuration\StringAttributeCollection.cs (8)
37string trimmedItem = item.Trim(); 39Add(item.Trim()); 57sb.Append(str.Trim()); 110base[index] = value.Trim(); 122base.Add(value.Trim()); 130base.Add(str.Trim()); 143base.Insert(index, value.Trim()); 150base.Remove(value.Trim());
System\Configuration\WhiteSpaceTrimStringConverter.cs (2)
30return ((string)value).Trim(); 35return ((string)data).Trim();
System.Data (50)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagStringConverter.cs (2)
38str = str.Trim(); 49string flagName = name.Trim();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\ExtensibilityAccessor.cs (1)
267defaultProperty = defaultProperty == null ? null : defaultProperty.Trim();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Converters\VBIdentifierTrimConverter.cs (1)
20return ((string)value).Trim();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Expressions\ExpressionActivityEditor.cs (1)
165if (name != null && name.Trim().Length == 0)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (1)
355path = path.Trim();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxItemLoader.cs (5)
65entry = entry.Trim(); 106toolName = toolDefinition[0].Trim(); 107assembly = toolDefinition[1].Trim(); 117string current = toolDefinition[i].Trim(); 137string current = toolDefinition[i].Trim();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (2)
253ValidationService.ErrorBuilder.AppendLine(message.Trim()); 255errorMessage = ValidationService.ErrorBuilder.ToString().Trim();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
1721string valueAsString = value.ToString().Replace("%", "").Trim();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (2)
200tempText = tempText.Trim(); 1391currentText = this.expressionEditorInstance.Text ?? this.expressionEditorInstance.Text.Trim();
fx\src\data\System\Data\Common\AdapterUtil.cs (1)
2561dataSource = dataSource.Trim();
fx\src\data\System\Data\Common\DbConnectionOptions.cs (2)
294string tmp = stringValue.Trim(); // Remove leading & trailing white space. 320string tmp = stringValue.Trim(); // Remove leading & trailing white space.
fx\src\data\System\Data\Common\DbConnectionStringCommon.cs (6)
254string tmp = svalue.Trim(); // Remove leading & trailing white space. 284string tmp = svalue.Trim(); // Remove leading & trailing white space. 409sValue = sValue.Trim(); 534sValue = sValue.Trim(); 728sValue = sValue.Trim(); 800sValue = sValue.Trim();
fx\src\data\System\Data\Common\DBDataPermission.cs (1)
257value = value.Trim();
fx\src\data\System\Data\DataSet.cs (1)
3548ns = a.FixedValue.Trim();
fx\src\data\System\Data\DataTable.cs (3)
3372string current = split[i].Trim(); 3378current = current.Substring(0, length - 4).Trim(); 3382current = current.Substring(0, length - 5).Trim();
fx\src\data\System\Data\Filter\FunctionNode.cs (1)
409return(((string)argumentValues[0]).Trim());
fx\src\data\System\Data\Odbc\OdbcConnection.cs (1)
832if ((null == value) || (0 == value.Trim().Length)) { // MDAC 62679
fx\src\data\System\Data\OleDb\OleDbConnection.cs (1)
327if ((null == value) || (0 == value.Trim().Length)) { // MDAC 62679
fx\src\data\System\Data\OleDb\oledbconnectionstring.cs (4)
321return connectionString.Trim(); 338progid = progid.Trim(); 345progid = progid.Trim(); 350progid = ConvertValueToString(KEY.Provider, ADP.StrEmpty).Trim();
fx\src\data\System\Data\SqlClient\LocalDBAPI.cs (3)
42string instanceName = serverName.Substring(const_localDbPrefix.Length).Trim(); 317tempConfigurableInstances.Add(confElement.Name.Trim(), new InstanceInfo(confElement.Version.Trim()));
fx\src\data\System\Data\SqlClient\LocalDBConfig.cs (2)
44x = xStr.Trim(); 48y = yStr.Trim();
fx\src\data\System\Data\SqlClient\SqlConnectionString.cs (1)
353string networkLibrary = _networkLibrary.Trim().ToLower(CultureInfo.InvariantCulture);
fx\src\data\System\Data\SqlClient\SqlConnectionStringBuilder.cs (3)
713switch(value.Trim().ToLower(CultureInfo.InvariantCulture)) { 1240svalue = svalue.Trim(); 1267switch(svalue.Trim().ToLower(CultureInfo.InvariantCulture)) {
fx\src\data\System\Data\SQLTypes\SQLBinary.cs (1)
486base64 = base64.Trim();
fx\src\data\System\Data\SQLTypes\SQLBytes.cs (1)
540 base64 = base64.Trim();
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (2)
437Debug.Assert ( path == path.Trim() ); 463path = path.Trim();
System.Data.Entity (30)
System\Data\Common\EntitySql\CqlParserHelpers.cs (1)
59if (String.IsNullOrEmpty(query) || query.Trim().Length == 0)
System\Data\Common\Utils\CommandHelper.cs (3)
55containerName = nameParts[0].Trim(); 56functionImportName = nameParts[1].Trim(); 61functionImportName = nameParts[0].Trim();
System\Data\EntityClient\EntityCommand.cs (1)
627string.IsNullOrEmpty(this.CommandText.Trim()))
System\Data\EntityClient\EntityConnection.cs (2)
228return providerString.Trim().Replace("\"", "\\\""); 934keywordValue = keywordValue.Trim(); // be nice to user, always trim the value
System\Data\EntityModel\SchemaObjectModel\CollectionTypeElement.cs (1)
156if (UnresolvedType != null && !UnresolvedType.Trim().Equals(String.Empty))
System\Data\EntityModel\SchemaObjectModel\Function.cs (2)
647value = value.Trim(); 765value = value.Trim();
System\Data\EntityModel\SchemaObjectModel\OnOperation.cs (1)
105switch ( reader.Value.Trim() )
System\Data\EntityModel\SchemaObjectModel\Parameter.cs (2)
112if (UnresolvedType != null && !UnresolvedType.Trim().Equals(String.Empty)) 221value = value.Trim();
System\Data\EntityModel\SchemaObjectModel\ReferenceTypeElement.cs (1)
65Debug.Assert(UnresolvedType != null && !UnresolvedType.Trim().Equals(String.Empty));
System\Data\EntityModel\SchemaObjectModel\RowTypePropertyElement.cs (1)
155if (UnresolvedType != null && !UnresolvedType.Trim().Equals(String.Empty))
System\Data\EntityModel\SchemaObjectModel\SchemaElement.cs (1)
787else if (reader.Value != null && reader.Value.Trim().Length == 0)
System\Data\EntityModel\SchemaObjectModel\SridFacetDescriptionElement.cs (1)
40if (value.Trim() == XmlConstants.Variable)
System\Data\EntityModel\SchemaObjectModel\TypeRefElement.cs (1)
87Debug.Assert(UnresolvedType != null && !UnresolvedType.Trim().Equals(String.Empty));
System\Data\EntityModel\SchemaObjectModel\TypeUsageBuilder.cs (2)
539if (value.Trim() == XmlConstants.Max) 559if (value.Trim() == XmlConstants.Variable)
System\Data\Mapping\StorageMappingItemLoader.cs (4)
939var entityTypeNames = entityTypeAttribute.Split(StorageMslConstructs.TypeNameSperator).Select(s => s.Trim()); 957entityTypeName = entityTypeName.Substring(0, entityTypeName.Length - StorageMslConstructs.IsTypeOfTerminal.Length).Trim(); 1261typeNameString = typeNameString.Trim(); 1289if (typeNameString == null || typeNameString.Trim().Length == 0)
System\Data\Metadata\MetadataArtifactLoader.cs (2)
179string trimedPath = path.Trim(); 438path = path.Trim();
System\Data\Metadata\MetadataArtifactLoaderCompositeResource.cs (1)
306createCompositeResLoader = (assemblyName != null) && (resourceName == null || assemblyName.Trim() == wildcard);
System\Data\Metadata\MetadataCache.cs (1)
177results[i] = results[i].Trim();
System\Data\Objects\ObjectContext.cs (1)
240if (connectionString == null || connectionString.Trim().Length == 0)
System\Data\Objects\Span.cs (1)
149if (path.Trim().Length == 0)
System.Data.Entity.Design (6)
System\Data\Entity\Design\PluralizationService\EnglishPluralizationService.cs (2)
850if (string.IsNullOrEmpty(word.Trim()) || !word.Equals(word.Trim()) ||
System\Data\EntityModel\Emitters\CommentEmitter.cs (1)
216lines[0] = lines[0].Trim();
System\Data\EntityModel\Emitters\FixUpCollection.cs (3)
149trimmedLine = line.Trim(); 613line = line.Replace('\t', ' ').Trim(); 681name = line.Substring(index, end-index).Trim();
System.Data.Linq (8)
DbConvert.cs (1)
94string text = ((string)value).Trim();
Mapping\AttributedMetaModel.cs (2)
428if ((codeValue.GetType() == typeof(string) && ((string)codeValue).Trim().Length == 0 && 429d.GetType() == typeof(string) && ((string)d).Trim().Length == 0) ||
Mapping\MappedMetaModel.cs (3)
511if ((keyValue.GetType() == typeof(string) && ((string)keyValue).Trim().Length == 0 && 512d.GetType() == typeof(string) && ((string)d).Trim().Length == 0) || 1494names[i] = names[i].Trim();
SqlClient\SqlTypeSystemProvider.cs (2)
886if (String.Compare(param1.Trim(), "max", StringComparison.OrdinalIgnoreCase) == 0) { 897if (String.Compare(param2.Trim(), "max", StringComparison.OrdinalIgnoreCase) == 0) {
System.Data.Services (12)
parent\Client\System\Data\Services\Client\BatchStream.cs (2)
1324string name = line.Substring(0, colon).Trim(); 1325string value = line.Substring(colon + 1).Trim();
System\Data\Services\HttpContextServiceHost.cs (4)
391Debug.Assert(item.Trim() == item, "item.Trim() == item - otherwise, there are leading/trailing spaces in the name"); 401if (key != null && StringComparer.OrdinalIgnoreCase.Equals(key.Trim(), item)) 466string value = values[j].Trim(); 478name = name.Trim();
System\Data\Services\HttpProcessUtility.cs (5)
362libraryName = text.Substring(separator + 1).Trim(); 371versionText = versionText.Trim(); 426name = name.Trim(); 1085string qvalueText = parameter.Value.Trim(); 1121string encodingName = parameter.Value.Trim();
System\Data\Services\RequestUriProcessor.cs (1)
1082queryStringValue = queryStringValue.Trim();
System.Data.Services.Client (8)
parent\Server\System\Data\Services\HttpProcessUtility.cs (4)
362libraryName = text.Substring(separator + 1).Trim(); 371versionText = versionText.Trim(); 426name = name.Trim(); 1121string encodingName = parameter.Value.Trim();
System\Data\Services\Client\ALinq\ResourceBinder.cs (2)
883if (((string)name.Value).Trim() == UriHelper.DOLLARSIGN + UriHelper.OPTIONEXPAND) 2314string name = ((string)(e as ConstantExpression).Value).Trim();
System\Data\Services\Client\BatchStream.cs (2)
1324string name = line.Substring(0, colon).Trim(); 1325string value = line.Substring(colon + 1).Trim();
System.Data.Services.Design (4)
System\Data\EntityModel\Emitters\CommentEmitter.cs (1)
213lines[0] = lines[0].Trim();
System\Data\EntityModel\Emitters\FixUpCollection.cs (3)
145nakedLine = line.Trim(); 609line = line.Replace('\t', ' ').Trim(); 677name = line.Substring(index, end-index).Trim();
System.Drawing (13)
commonui\System\Drawing\Advanced\ImageFormatConverter.cs (1)
70string text = strValue.Trim();
commonui\System\Drawing\Advanced\SizeFConverter.cs (1)
66string text = strValue.Trim();
commonui\System\Drawing\ColorConverter.cs (1)
132string text = strValue.Trim();
commonui\System\Drawing\FontConverter.cs (3)
85string text = strValue.Trim(); 156styleText = styleText.Trim(); 457text = text.Trim();
commonui\System\Drawing\PointConverter.cs (1)
66string text = strValue.Trim();
commonui\System\Drawing\Printing\MarginsConverter.cs (1)
65string text = strValue.Trim();
commonui\System\Drawing\RectangleConverter.cs (1)
66string text = strValue.Trim();
commonui\System\Drawing\SizeConverter.cs (1)
66string text = strValue.Trim();
parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (3)
98identifier = components[0].Trim(); 122string key = keyValuePair[0].Trim(); 123string value = keyValuePair[1].Trim();
System.IdentityModel (8)
parent\parent\parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (3)
98identifier = components[0].Trim(); 122string key = keyValuePair[0].Trim(); 123string value = keyValuePair[1].Trim();
System\IdentityModel\Metadata\MetadataSerializer.cs (2)
1428string toAdd = protocol.Trim(); 2789writer.WriteAttributeString(Saml2MetadataConstants.Attributes.ProtocolsSupported, null, protocolsString.Trim());
System\IdentityModel\SecurityUtils.cs (1)
531hexString = hexString.Trim();
System\IdentityModel\SignedXml.cs (2)
380this.signatureValue = System.Convert.FromBase64String(signatureText.Trim()); 1305this.digestValue = System.Convert.FromBase64String(digestText.Trim());
System.IO.Compression.FileSystem (3)
parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (3)
98identifier = components[0].Trim(); 122string key = keyValuePair[0].Trim(); 123string value = keyValuePair[1].Trim();
System.Management (9)
managementquery.cs (9)
969 string q = query.Trim(); 993 tempProp = tempProp.Trim(); 1028 condition = q.Substring(keyword.Length).Trim(); 1643 string q = query.Trim(); 2158 string q = query.Trim(); 3023 string q = query.Trim(); 3058 w = q.Substring(0, i).Trim(); 3082 tempProp = tempProp.Trim(); 3118 w = q.Trim();
System.Messaging (4)
System\Messaging\Design\MessageQueueConverter.cs (1)
54string text = ((string)value).Trim();
System\Messaging\Design\SizeConverter.cs (1)
46string text = ((string)value).Trim();
System\Messaging\Design\TimeoutConverter.cs (1)
50string text = ((string)value).Trim();
System\Messaging\MessageQueuePermission.cs (1)
176string currentAccess = accessArray[index2].Trim();
System.Runtime.Remoting (2)
channels\http\httpchannelhelper.cs (1)
162String key = part.Substring(0, index).Trim();
metadata\wsdlparser.cs (1)
2162value = Atomize(_XMLReader.Value.Trim());
System.Runtime.Serialization (4)
System\Runtime\Serialization\DataContract.cs (1)
1771string trimmedNs = dataContractNs.Trim();
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (2)
68qname = qname.Trim(); 181dateTimeValue = originalDateTimeValue.Trim();
System\Runtime\Serialization\XmlReaderDelegator.cs (1)
496str = str.Trim();
System.ServiceModel (53)
parent\parent\parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (3)
98identifier = components[0].Trim(); 122string key = keyValuePair[0].Trim(); 123string value = keyValuePair[1].Trim();
System\ServiceModel\Channels\AsymmetricSecurityBindingElement.cs (3)
452sb.AppendLine(this.initiatorTokenParameters.ToString().Trim().Replace("\n", "\n ")); 457sb.AppendLine(this.recipientTokenParameters.ToString().Trim().Replace("\n", "\n ")); 461return sb.ToString().Trim();
System\ServiceModel\Channels\BaseUriWithWildcard.cs (1)
60string portString = urlParameters[currentIndex].Trim();
System\ServiceModel\Channels\ContextProtocol.cs (2)
108string trimmedToken = token.Trim(); 119string value = trimmedToken.Substring(equalsSignIndex + 1).Trim();
System\ServiceModel\Channels\DefaultWebSocketConnectionHandler.cs (1)
193isValid = validator(headerValue.Trim());
System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
3009string.Compare(value.Trim(), "close", StringComparison.OrdinalIgnoreCase) == 0 &&
System\ServiceModel\Channels\PeerSecurityHelpers.cs (1)
57pwdBytes = UnicodeEncoding.Unicode.GetBytes(pwd.Trim());
System\ServiceModel\Channels\SecurityBindingElement.cs (5)
1841sb.AppendLine(" " + this.EndpointSupportingTokenParameters.ToString().Trim().Replace("\n", "\n ")); 1843sb.AppendLine(" " + this.OptionalEndpointSupportingTokenParameters.ToString().Trim().Replace("\n", "\n ")); 1853sb.AppendLine(" " + this.OperationSupportingTokenParameters[requestAction].ToString().Trim().Replace("\n", "\n ")); 1865sb.AppendLine(" " + this.OptionalOperationSupportingTokenParameters[requestAction].ToString().Trim().Replace("\n", "\n ")); 1869return sb.ToString().Trim();
System\ServiceModel\Channels\SymmetricSecurityBindingElement.cs (2)
410sb.AppendLine(this.protectionTokenParameters.ToString().Trim().Replace("\n", "\n ")); 414return sb.ToString().Trim();
System\ServiceModel\Channels\WebSocketHelper.cs (2)
147token = token.Trim(); 200currentWebSocketVersion = version.Trim();
System\ServiceModel\ComIntegration\ComPlusInstanceContextInitializer.cs (1)
99string assemblyGuidString = args.Name.Substring(0, indexOfComma).Trim().ToLowerInvariant();
System\ServiceModel\ComIntegration\MonikerUtility.cs (7)
25string suspectedKeyword = moniker.Substring(0, indexOfEqualSign).Trim(); 43moniker = moniker.Trim(); 80moniker = moniker.Trim(); 87moniker = moniker.Trim(); 115moniker = moniker.Trim(); 125val = value.ToString().Trim(); 133string monikerParams = displayName.Substring(indexOfMonikerData + 1).Trim();
System\ServiceModel\Configuration\ExtensionElement.cs (1)
87return typeName.Trim();
System\ServiceModel\Configuration\ServiceActivationElement.cs (1)
31if (string.IsNullOrEmpty(relativeAddress) || string.IsNullOrEmpty(relativeAddress.Trim()) || relativeAddress.Length < 3)
System\ServiceModel\Configuration\XPathMessageFilterElement.cs (1)
68filterString = filterString.Trim();
System\ServiceModel\Description\WsdlImporter.cs (1)
1355string newPolicyUris = string.Format(System.Globalization.CultureInfo.InvariantCulture, "#{0} {1}", id, policyUris).Trim();
System\ServiceModel\Dispatcher\QueryMatcher.cs (2)
398return QueryMatcher.CompileForInternalEngine(filter.XPath.Trim(), filter.namespaces, flags, functionLibs, out returnType); 731xpath = xpath.Trim();
System\ServiceModel\Dispatcher\XPathMessageFilter.cs (1)
549string xpath = reader.ReadString().Trim();
System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (2)
939sb.AppendLine(" " + bindingElements[i].ToString().Trim().Replace("\n", "\n ")); 956return sb.ToString().Trim();
System\ServiceModel\Security\Tokens\SecureConversationSecurityTokenParameters.cs (2)
220sb.AppendLine(" " + this.BootstrapSecurityBindingElement.ToString().Trim().Replace("\n", "\n ")); 223return sb.ToString().Trim();
System\ServiceModel\Security\Tokens\ServiceModelSecurityTokenRequirement.cs (1)
244return sb.ToString().Trim();
System\ServiceModel\Security\Tokens\SupportingTokenParameters.cs (5)
122sb.AppendLine(" " + this.endorsing[k].ToString().Trim().Replace("\n", "\n ")); 131sb.AppendLine(" " + this.signed[k].ToString().Trim().Replace("\n", "\n ")); 140sb.AppendLine(" " + this.signedEncrypted[k].ToString().Trim().Replace("\n", "\n ")); 149sb.AppendLine(" " + this.signedEndorsing[k].ToString().Trim().Replace("\n", "\n ")); 152return sb.ToString().Trim();
System\ServiceModel\Security\XmlHelper.cs (3)
291prefix = parts[0].Trim(); 292name = parts[1].Trim(); 297name = qName.Trim();
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (1)
657dateTimeString = dateTimeString.Trim();
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (1)
264StringBuilder dateTimeStringBuilder = new StringBuilder(dateTimeString.Trim());
System\ServiceModel\Transactions\WsatRegistrationHeader.cs (2)
158contextId = reader.ReadElementContentAsString().Trim(); 177tokenId = reader.ReadElementContentAsString().Trim();
System.ServiceModel.Activation (2)
System\ServiceModel\Activation\ServiceParser.cs (2)
762val = val.Trim(); 874return (s.Trim().Length == 0);
System.ServiceModel.Activities (1)
System\ServiceModel\XamlIntegration\XNameTypeConverter.cs (1)
46stringValue = stringValue.Trim();
System.ServiceModel.Discovery (3)
System\ServiceModel\Discovery\ScopeCompiler.cs (2)
333if (string.IsNullOrEmpty(token.Trim())) 389if (string.IsNullOrEmpty(token.Trim()))
System\ServiceModel\Discovery\SerializationUtility.cs (1)
123string encodedLocalName = XmlConvert.EncodeLocalName(qname.Name.Trim());
System.ServiceModel.WasHosting (2)
System\ServiceModel\WasHosting\MetabaseSettingsIis7.cs (2)
102string protocol = protocolValue.Trim(); 439string protocol = protocolValue.Trim();
System.ServiceModel.Web (19)
System\ServiceModel\Dispatcher\FormatSelectingMessageInspector.cs (2)
124string type = typeAndSubType[0].Trim().ToLowerInvariant(); 125string subType = typeAndSubType[1].Trim();
System\ServiceModel\Dispatcher\JsonQueryStringConverter.cs (9)
77return CreateJsonDeserializedObject(parameter.Trim(), parameterType); 90return CreateJsonDeserializedObject(parameter.Trim(), parameterType); 102return CreateJsonDeserializedObject(parameter.Trim(), parameterType); 114return CreateJsonDeserializedObject(parameter.Trim(), parameterType); 126return CreateJsonDeserializedObject(parameter.Trim(), parameterType); 138return CreateJsonDeserializedObject(parameter.Trim(), parameterType); 150return CreateJsonDeserializedObject(parameter.Trim(), parameterType); 159return CreateJsonDeserializedObject(parameter.Trim(), parameterType); 209string localParameter = parameter.Trim();
System\ServiceModel\Web\CachingParameterInspector.cs (3)
322cache.VaryByContentEncodings[contentEncoding.Trim()] = true; 330cache.VaryByHeaders[header.Trim()] = true; 345cache.VaryByParams[parameter.Trim()] = true;
System\ServiceModel\Web\IncomingWebRequestContext.cs (1)
359return (header.Trim() == "*");
System\ServiceModel\Web\Utility.cs (4)
32string contentTypeProcessed = contentType.Trim(); 45string contentTypeProcessed = contentType.Trim(); 155string contentTypeTrimmed = contentType.Trim(); 167Fx.Assert(contentType == contentType.Trim(), "The ContentType input argument should already be trimmed.");
System.Web (155)
Compilation\AppSettingsExpressionBuilder.cs (2)
34new CodePrimitiveExpression(entry.Expression.Trim())); 40new CodePrimitiveExpression(entry.Expression.Trim()),
Compilation\BaseTemplateCodeDomTreeGenerator.cs (1)
1302CodeExpression expr = new CodeSnippetExpression(codeBlock.Content.Trim());
Compilation\MultiTargetingUtil.cs (1)
118targetFramework = targetFramework.Trim();
Compilation\ResourceExpressionBuilder.cs (3)
231resourceKey = parts[0].Trim(); 234classKey = parts[0].Trim(); 235resourceKey = parts[1].Trim();
Compilation\RouteUrlExpressionBuilder.cs (4)
34new CodePrimitiveExpression(entry.Expression.Trim())); 40return GetRouteUrl(context.TemplateControl, entry.Expression.Trim()); 57string key = subs[0].Trim(); 58string value = subs[1].Trim();
Compilation\RouteValueExpressionBuilder.cs (2)
34new CodePrimitiveExpression(entry.Expression.Trim()), 48return GetRouteValue(context.TemplateControl.Page, entry.Expression.Trim(), entry.ControlType, entry.Name);
Configuration\HandlerBase.cs (1)
109if (a.Value.Trim() != a.Value) {
Configuration\HealthMonitoringSectionHelper.cs (1)
294customEvaluator.Trim().Length == 0) {
Configuration\HttpRuntimeSection.cs (2)
846string decodedString = stringsDecoded[iter].Trim(); 866string decodedString = HttpUtility.UrlDecode(stringsToDecode[iter], Encoding.UTF8).Trim();
Configuration\ProfilePropertyNameValidator.cs (1)
30s = s.Trim();
Configuration\ProvidersHelper.cs (2)
25string pnType = (providerSettings.Type == null) ? null : providerSettings.Type.Trim(); 93strValue = strValue.Trim();
CrossSiteScriptingValidation.cs (1)
102s = s.Trim();
DataAccess\SqlConnectionHelper.cs (3)
136string strUpper = str.ToUpper(CultureInfo.InvariantCulture).Trim(); 146partialFileName = strUpper.Substring(startPos).Trim(); 167string strTemp = strUpper.Substring(pos + 1).Trim();
Hosting\ApplicationManager.cs (1)
1404tempDirectory = tempDirectory.Trim();
Hosting\IIS7WorkerRequest.cs (2)
1274String name = s.Substring(i, ci-i).Trim(); 1289String value = s.Substring(ci+1, ni-ci-1).Trim();
Hosting\ISAPIWorkerRequest.cs (2)
750String name = s.Substring(i, ci-i).Trim(); 764String value = s.Substring(ci+1, ni-ci-1).Trim();
HttpCookie.cs (5)
374HttpCookie cookie = HttpRequest.CreateCookieFromString(cookiePair.Trim()); 389string cookieAv = dividerIndex >= 0 ? input.Substring(cookieAvStartIndex, dividerIndex - cookieAvStartIndex).Trim() : input.Substring(cookieAvStartIndex).Trim(); 392string attributeName = assignmentIndex >= 0 ? cookieAv.Substring(0, assignmentIndex).Trim() : cookieAv; 393string attributeValue = assignmentIndex >= 0 && assignmentIndex < cookieAv.Length - 1 ? cookieAv.Substring(assignmentIndex + 1).Trim() : null;
HttpRequest.cs (3)
732String cookieString = s.Substring(i, j-i).Trim(); 883attrValue = headerValue.Substring(i+1, j-i-1).Trim(); 896attrValue = headerValue.Substring(i, j-i).Trim();
HttpRuntime.cs (1)
894tempDirectory = tempDirectory.Trim();
Management\SqlServices.cs (1)
426if (StringUtil.EqualsIgnoreCase(cur.Trim(), "GO"))
Management\TemplatedMailWebEventProvider.cs (1)
71_templateUrl = _templateUrl.Trim();
ModelBinding\ValueProviderResult.cs (1)
52if (valueAsString != null && valueAsString.Trim().Length == 0) {
MultipartContentParser.cs (2)
175return l.Substring(i1, i2-i1).Trim(); 207_partContentType = line.Substring(ic+1).Trim();
Profile\HttpProfileBase.cs (3)
112_UserName = username.Trim(); 243string inheritsType = config.Inherits.Trim(); 264string inheritsType = config.Inherits.Trim();
Profile\ProfileInfo.cs (1)
33username = username.Trim();
Security\ADMembershipProvider.cs (5)
394passwordStrengthRegularExpression = passwordStrengthRegularExpression.Trim(); 2568passwordAnswer = passwordAnswer.Trim(); 2582if (password.Trim().Length < 1) 2596if (password.Trim().Length < 1) 3152sValue = sValue.Trim();
Security\RolePrincipal.cs (1)
331role = role.Trim();
Security\SQLMembershipProvider.cs (5)
133_PasswordStrengthRegularExpression = _PasswordStrengthRegularExpression.Trim(); 263passwordAnswer = passwordAnswer.Trim(); 446newPasswordAnswer = newPasswordAnswer.Trim(); 708passwordAnswer = passwordAnswer.Trim(); 1790passwordAnswer = passwordAnswer.Trim();
Security\UrlAuthorizationModule.cs (1)
71verb = verb.Trim();
Security\WindowsTokenRoleProvider.cs (5)
75username = username.Trim(); 87username = username.Trim(); 90roleName = roleName.Trim(); 108username = username.Trim(); 133roles[iter] = roles[iter].Trim();
SiteMapNode.cs (2)
84_url = url.Trim(); 355_url = value.Trim();
StaticSiteMapProvider.cs (1)
183rawUrl = rawUrl.Trim();
UI\BatchParser.cs (1)
334value = value.Trim();
UI\CollectionBuilder.cs (1)
124throw new HttpException(SR.GetString(SR.Literal_content_not_allowed, ControlType.FullName, s.Trim()));
UI\Control.cs (1)
2177path = path.Trim();
UI\ControlBuilder.cs (9)
1078value = value.Trim(); 1237s = s.Trim(); 1324string text = ((StringPropertyBuilder)subBuilder).Text.Trim(); 2294string expressionPrefix = entry.ExpressionPrefix == null ? String.Empty : entry.ExpressionPrefix.Trim(); 2302dataBindings.Add(new DataBinding(entry.Name, entry.Type, entry.Expression.Trim())); 2306string expression = entry.Expression == null ? String.Empty : entry.Expression.Trim(); 2754string code = match.Groups["code"].Value.Trim(); 2761string expressionPrefix = code.Substring(0, indexOfColon).Trim(); 2762string expressionCode = code.Substring(indexOfColon + 1).Trim();
UI\CssTextWriter.cs (1)
445urlValue = url.Substring(urlIndex, urlLength).Trim();
UI\DataBinder.cs (2)
70expression = expression.Trim(); 226string index = expr.Substring(indexExprStart + 1, indexExprEnd - indexExprStart - 1).Trim();
UI\DataSourceCacheDurationConverter.cs (1)
42string textValue = stringValue.Trim();
UI\Page.cs (6)
2542if ((clientID == null) || (clientID.Trim().Length == 0)) { 2554_focusedControlID = clientID.Trim(); 3717cache.VaryByContentEncodings[s.Trim()] = true; 3723cache.VaryByHeaders[s.Trim()] = true; 3753cache.VaryByParams[s.Trim()] = true; 3759cache.VaryByParams[s.Trim()] = true;
UI\PageTheme.cs (1)
28throw new HttpException(SR.GetString(SR.Literal_content_not_allowed, SR.GetString(SR.Page_theme_skin_file), s.Trim()));
UI\PartialCachingControl.cs (1)
529string temp = prefix + varyByParam.Trim();
UI\SkinBuilder.cs (1)
184dataBindings.Add(new DataBinding(entry.Name, entry.Type, entry.Expression.Trim()));
UI\TemplateParser.cs (4)
1084string code = match.Groups["code"].Value.Trim(); 1924string compilerOptions = value.Trim(); 2357string assemblyName = typeName.Substring(commaIndex + 1).Trim(); 2358typeName = typeName.Substring(0, commaIndex).Trim();
UI\Util.cs (3)
639val = val.Trim(); 666value = value.Trim(); 989return (s.Trim().Length == 0);
UI\WebControls\Adapters\MenuAdapter.cs (2)
175if (styleClass.Trim().Length > 0) { 346if (styleClass.Trim().Length > 0) {
UI\WebControls\AdRotator.cs (2)
204ViewState["KeywordFilter"] = value.Trim(); 955keyword = ((string) keywordValue).Trim();
UI\WebControls\BaseValidator.cs (1)
750if (Text.Trim().Length > 0) {
UI\WebControls\CompareValidator.cs (1)
171if (leftText.Trim().Length == 0) {
UI\WebControls\CustomValidator.cs (1)
136if ((controlValue == null || controlValue.Trim().Length == 0) &&
UI\WebControls\DataControlField.cs (1)
642string headerText = HeaderText.Trim();
UI\WebControls\FontNamesConverter.cs (1)
46names[i] = names[i].Trim();
UI\WebControls\FontUnitConverter.cs (1)
47string textValue = stringValue.Trim();
UI\WebControls\HorizontalAlignConverter.cs (1)
53string textValue = ((string)value).Trim();
UI\WebControls\Menu.cs (3)
1788baseClassName = builder.ToString().Trim(); 1810return builder.ToString().Trim(); 2030baseClassName = builder.ToString().Trim();
UI\WebControls\MenuItem.cs (2)
876if (styleClass.Trim().Length > 0) { 902if (styleClass.Trim().Length > 0) {
UI\WebControls\MenuRendererStandards.cs (1)
389cssClass = (cssClass + " " + DisabledCssClass).Trim();
UI\WebControls\Panel.cs (1)
258if (s.Trim().Length > 0) {
UI\WebControls\PopOutPanel.cs (1)
170if (styleClass.Trim().Length > 0) {
UI\WebControls\QueryExtensions.cs (2)
19sortExpression = sortExpression.Trim(); 27sortExpression = sortExpression.Substring(0, descIndex).Trim();
UI\WebControls\RangeValidator.cs (1)
114if (text.Trim().Length == 0) {
UI\WebControls\RegularExpressionValidator.cs (1)
86if (controlValue == null || controlValue.Trim().Length == 0) {
UI\WebControls\RequiredFieldValidator.cs (2)
76return(!controlValue.Trim().Equals(InitialValue.Trim()));
UI\WebControls\StringArrayConverter.cs (1)
49names[i] = names[i].Trim();
UI\WebControls\TreeNode.cs (2)
1403if (styleClass.Trim().Length > 0) { 1449if (styleClass.Trim().Length > 0) {
UI\WebControls\TreeView.cs (2)
1883baseClassName = builder.ToString().Trim(); 1892return builder.ToString().Trim(); ;
UI\WebControls\Unit.cs (2)
111string trimLcase = value.Trim().ToLower(CultureInfo.InvariantCulture); 125type = (UnitType)GetTypeFromString(trimLcase.Substring(lastDigit+1).Trim());
UI\WebControls\unitconverter.cs (1)
61string textValue = stringValue.Trim();
UI\WebControls\VerticalAlignConverter.cs (1)
52string textValue = ((string)value).Trim();
UI\WebControls\WebColorConverter.cs (1)
31string colorText = ((string)value).Trim();
UI\WebControls\xml.cs (1)
398if (String.IsNullOrEmpty(_transformSource) || _transformSource.Trim().Length == 0)
UI\WebControls\XmlDataSource.cs (3)
164value = value.Trim(); 255value = value.Trim(); 479content = content.Trim();
UI\WebParts\CatalogZone.cs (1)
48if (((literal == null) || (literal.Text.Trim().Length != 0)) && !DesignMode) {
UI\WebParts\EditorZone.cs (1)
48if (((literal == null) || (literal.Text.Trim().Length != 0)) && !DesignMode) {
UI\WebParts\ImportCatalogPart.cs (1)
269string url = reader.ReadElementString().Trim();
UI\WebParts\PersonalizationProviderHelper.cs (1)
32string trimmedStr = (str == null) ? null : str.Trim();
UI\WebParts\PersonalizationStateQuery.cs (2)
40value = value.Trim(); 63value = value.Trim();
UI\WebParts\WebZone.cs (1)
369if (backImageUrl.Trim().Length > 0)
Util\SecUtil.cs (2)
102param = param.Trim(); 136param = param.Trim();
Util\StringUtil.cs (1)
40string trimmedValue = paramValue.Trim();
VirtualPath.cs (1)
560virtualPath = virtualPath.Trim();
WebSockets\WebSocketUtil.cs (2)
38bool urisCreatedSuccessfully = Uri.TryCreate(workerRequest.GetProtocol() + "://" + hostHeader.Trim(), UriKind.Absolute, out hostHeaderUri) // RFC 2616 (Sec. 14.23): "Host" header doesn't contain the scheme, so we need to prepend 39&& Uri.TryCreate(secWebSocketOriginHeader.Trim(), UriKind.Absolute, out originHeaderUri);
XmlSiteMapProvider.cs (4)
718collection.Add(attrName, className.Trim()); 719collection.Add(attrName, key.Trim()); 761string trimmedRole = role.Trim(); 774url = url.Trim();
System.Web.ApplicationServices (4)
Security\MembershipUser.cs (3)
123name = name.Trim(); 128email = email.Trim(); 133passwordQuestion = passwordQuestion.Trim();
Util\SecurityServices.cs (1)
28param = param.Trim();
System.Web.DataVisualization (45)
Common\Annotation\TextAnnotation.cs (1)
947 if(GetGraphics() != null && this.Text.Trim().Length > 0)
Common\ChartTypes\BoxPlotChart.cs (2)
923if (text.Trim().Length != 0) 1568 boxPlotSeries.Points[pointIndex++][CustomPropertyName.BoxPlotSeries] = val.Trim();
Common\ChartTypes\ErrorBarChart.cs (1)
980if (text.Trim().Length != 0)
Common\ChartTypes\KagiChart.cs (1)
288string attrValue = series[CustomPropertyName.ReversalAmount].Trim();
Common\ChartTypes\PointAndFigureChart.cs (2)
377string attrValue = series[CustomPropertyName.BoxSize].Trim(); 467string attrValue = series[CustomPropertyName.ReversalAmount].Trim();
Common\ChartTypes\PointChart.cs (1)
831if (text.Trim().Length != 0)
Common\ChartTypes\RadarChart.cs (1)
1199if (text.Trim().Length != 0)
Common\ChartTypes\RenkoChart.cs (1)
304 string attrValue = series[CustomPropertyName.BoxSize].Trim();
Common\ChartTypes\StackedBarChart.cs (1)
1085if (text.Trim().Length != 0)
Common\ChartTypes\StackedColumnChart.cs (1)
1165if (text.Trim().Length != 0)
Common\ChartTypes\StockChart.cs (1)
997if (text.Trim().Length != 0)
Common\Converters\LegendConverters.cs (4)
393margins.Top = int.Parse(values[0].Trim(), CultureInfo.InvariantCulture); 394margins.Bottom = int.Parse(values[1].Trim(), CultureInfo.InvariantCulture); 395margins.Left = int.Parse(values[2].Trim(), CultureInfo.InvariantCulture); 396margins.Right = int.Parse(values[3].Trim(), CultureInfo.InvariantCulture);
Common\DataManager\DataPoint.cs (7)
383 otherAttributeNames[index] = otherAttributeNames[index].Trim().Replace("\n", ","); 384 otherFieldNames[index] = otherFieldNames[index].Trim().Replace("\n", ","); 386otherValueFormat[index] = otherValueFormat[index].Trim().Replace("\n", ","); 4755 values[0] = values[0].Trim(); 4756 values[1] = values[1].Trim(); 6996 values[0] = values[0].Trim(); 6997 values[1] = values[1].Trim();
Common\Formulas\FormulaHelpers.cs (3)
1421string seriesName = seriesFieldParts[0].Trim(); 1503seriesFieldId = seriesFieldId.ToUpperInvariant().Trim(); 1592seriesFieldId = seriesFieldId.ToUpperInvariant().Trim();
Common\General\Axis.cs (1)
4673if (textRows[rowIndex].Length > longestLabelSize && textRows[rowIndex].Trim().IndexOf(' ') > 0)
Common\General\Chart.cs (3)
791 yFieldNames[index] = yFieldNames[index].Replace("\n", ",").Trim(); 825 DataPointCollection.AutoDetectValuesType(series, enumerator, series.XValueMember.Trim(), enumerator, yField); 843 xValueObj = DataPointCollection.ConvertEnumerationItem(enumerator.Current, series.XValueMember.Trim());
Common\General\DataManipulator.cs (3)
340 array[index] = Common.DataManager.Series[seriesName.Trim()]; 346Series newSeries = new Series(seriesName.Trim()); 3044 string formulaString = s.Trim();
Common\General\FormulaData.cs (2)
654seiesArray[index] = Common.DataManager.Series[parts[0].Trim()]; 1088parameterList[i] = parameterList[i].Trim();
Common\General\ImageMap.cs (2)
422string checkValue = value.Trim().Replace("\r", String.Empty).Replace("\n", String.Empty); 443name.Trim().StartsWith("on", StringComparison.OrdinalIgnoreCase))
Common\Utilities\XmlSerializer.cs (2)
1233 classInfo.name = item.Substring(0, pointIndex).Trim(); 1234 propertyInfo.name = item.Substring(pointIndex + 1).Trim();
WebForm\ChartWebControl.cs (2)
2973 seriesList.Add(this.Series[name.Trim()]); 2992 seriesList.Add(this.Series[name.Trim()]);
WebForm\General\ChartHttpHandler.cs (3)
1070String item = pairs[index].Trim(); 1074String name = item.Substring(0, eqPositon).Trim(); 1075String value = item.Substring(eqPositon + 1).Trim();
System.Web.Entity (4)
System\Data\WebControls\EntityDataSourceQueryBuilder.cs (1)
168string trimmedInclude = include.Trim();
System\Data\WebControls\OrderByBuilder.cs (3)
116string columnName = ParseStatement(statement.Trim(), out isAscending); 199memberExpression = Expression.Property(memberExpression, memberElement.Trim()); 214if (_argsSortExpression != null & _argsSortExpression.Trim().Length > 0)
System.Web.Entity.Design (3)
System\Data\WebControls\Design\EntityDataSourceDataSelection.cs (1)
406string propertyName = token.Trim();
System\Data\WebControls\Design\EntityDataSourceDesignerHelper.cs (2)
536string trimmedPath = path.Trim(); 911string trimmedPath = pathWithMacro.Trim();
System.Web.Extensions (25)
ApplicationServices\ApplicationServiceHelper.cs (1)
223string trimmed = property == null ? String.Empty : property.Trim();
ClientServices\Providers\ProxyHelper.cs (9)
299name = name.Trim(); 300value = value.Trim(); 316if (s != null && s.Trim().Length > 0) 349string cookieName = ((posEquals < 0) ? cookieHeader : cookieHeader.Substring(0, posEquals)).Trim(); 350string cookieValue = ((posEquals < 0) ? string.Empty : cookieHeader.Substring(posEquals + 1)).Trim(); 390cookieHeader = cookieHeader.Trim(); 416if (string.Compare(cookieProps[iter].Trim(), "HttpOnly", StringComparison.OrdinalIgnoreCase) == 0) { 432cookieName = cookieName.Trim(); 436cookieValue = sb.ToString().Trim();
ClientServices\Providers\SqlHelper.cs (1)
197if (string.Compare(conn.Database.Trim(), _SQL_CE_Tag, StringComparison.OrdinalIgnoreCase) != 0) {
UI\ApplicationServiceManager.cs (1)
17serviceUrl = serviceUrl.Trim();
UI\AuthenticationServiceManager.cs (1)
36authServiceUrl = authManager.Path.Trim();
UI\CompositeScriptReference.cs (1)
65if (String.Equals(cultureName, uiCulture.Trim(), StringComparison.OrdinalIgnoreCase)) {
UI\PageRequestManager.cs (3)
329if (headerContents[j].Trim() == "Delta=true") { 338(asyncPost.Trim() == "true"); 909_focusedControlID = clientID.Trim();
UI\ProfileServiceManager.cs (2)
43profileServiceUrl = profileManager.Path.Trim(); 154string trimmedProperty = property.Trim();
UI\RoleServiceManager.cs (1)
40roleServiceUrl = roleManager.Path.Trim();
UI\ScriptReference.cs (1)
205if (String.Equals(cultureName, uiCulture.Trim(), StringComparison.OrdinalIgnoreCase)) {
UI\ScriptRegistrationManager.cs (1)
125if (tweenSpace.Trim().Length != 0) {
UI\WebControls\Expressions\SearchExpression.cs (2)
47if ((DataFields == null) || String.IsNullOrEmpty(DataFields.Trim())) { 71Expression property = ExpressionHelper.CreatePropertyExpression(parameterExpression, p.Trim());
Util\HeaderUtility.cs (1)
17string e = encoding.Trim();
System.Web.Mobile (19)
Mobile\MobileErrorInfo.cs (1)
332return s.Replace("\r\n", " ").Trim();
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicImageAdapter.cs (1)
78source = Page.Server.UrlPathEncode(Control.ResolveUrl(source.Trim()));
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlMobileTextWriter.cs (1)
415if (bodyStyleClassDefinition != null && bodyStyleClassDefinition.Trim().Length > 0
UI\MobileControls\Design\Adapters\DesignerTextViewAdapter.cs (5)
69String filteredText = FilterTags(Control.Text.Trim()); 215tagName = text.Substring(tagBegin+1, i-tagBegin-1).Trim().ToUpper(CultureInfo.InvariantCulture); 217if (tagName.Trim().Length > 0) 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\Design\Adapters\DesignerValidatorAdapter.cs (1)
63if (Control.Text.Trim().Length > 0)
UI\MobileControls\Design\BaseValidatorDesigner.cs (2)
88(originalText.Trim().Length == 0 && _baseValidator.Text.Trim().Length == 0));
UI\MobileControls\Design\CommandDesigner.cs (1)
77bool blankText = (originalText.Trim().Length == 0);
UI\MobileControls\Design\Converters\FontNameConverter.cs (1)
125if (name.Trim().Length == 0)
UI\MobileControls\Design\LabelDesigner.cs (1)
80bool blankText = (originalText.Trim().Length == 0);
UI\MobileControls\Design\LinkDesigner.cs (1)
80bool blankText = (originalText.Trim().Length == 0);
UI\MobileControls\Design\PhoneCallDesigner.cs (1)
81bool blankText = (originalText.Trim().Length == 0);
UI\MobileControls\Design\TextViewDesigner.cs (1)
85bool blankText = (originalText.Trim().Length == 0);
UI\MobileControls\MobileControl.cs (2)
984if (trimNewlines && text.Trim().Length == 0) 1105text = text.Trim ();
System.Windows.Forms (43)
parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (3)
98identifier = components[0].Trim(); 122string key = keyValuePair[0].Trim(); 123string value = keyValuePair[1].Trim();
parent\parent\parent\public\Internal\NDP\Inc\mansign2.cs (1)
1084if (hash.Trim().Equals(publisherIssuerKeyHash, StringComparison.OrdinalIgnoreCase))
winforms\Managed\System\Resources\ResXDataNode.cs (6)
751string partialName = typeParts[0].Trim(); 752string assemblyName = typeParts[1].Trim(); 844string partialName = typeParts[0].Trim(); 847string s = typeParts[i].Trim(); 854t = typeResolver.GetType(typeParts[0].Trim()); 1008string fullName = name.Substring(pos + 1).Trim();
winforms\Managed\System\Resources\ResXFileRef.cs (1)
243stringValue = stringValue.Trim();
winforms\Managed\System\Resources\ResXResourceReader.cs (11)
451readerTypeName = readerTypeName.Split(new char[] {','})[0].Trim(); 454writerTypeName = writerTypeName.Split(new char[] {','})[0].Trim(); 494resHeaderVersion = reader.Value.Trim(); 502resHeaderMimeType = reader.Value.Trim(); 510resHeaderReaderType = reader.Value.Trim(); 518resHeaderWriterType = reader.Value.Trim(); 528resHeaderVersion = reader.Value.Trim(); 536resHeaderMimeType = reader.Value.Trim(); 544resHeaderReaderType = reader.Value.Trim(); 552resHeaderWriterType = reader.Value.Trim(); 637nodeInfo.ValueData = reader.Value.Trim();
winforms\Managed\System\WinForms\Application.cs (3)
281companyName = companyName.Trim(); 510productName = productName.Trim(); 574productVersion = productVersion.Trim();
winforms\Managed\System\WinForms\BindingSource.cs (3)
1127string current = split[i].Trim(); 1133current = current.Substring(0, length - 4).Trim(); 1137current = current.Substring(0, length - 5).Trim();
winforms\Managed\System\WinForms\Control.cs (3)
20156companyName = companyName.Trim(); 20198productName = productName.Trim(); 20243productVersion = productVersion.Trim();
winforms\Managed\System\WinForms\CursorConverter.cs (1)
62string text = ((string)value).Trim();
winforms\Managed\System\WinForms\KeysConverter.cs (2)
154string text = ((string)value).Trim(); 165tokens[i] = tokens[i].Trim();
winforms\Managed\System\WinForms\LinkArea.cs (1)
137string text = ((string)value).Trim();
winforms\Managed\System\WinForms\LinkConverter.cs (1)
62string text = ((string)value).Trim();
winforms\Managed\System\WinForms\ListViewGroupConverter.cs (1)
65string text = ((string)value).Trim();
winforms\Managed\System\WinForms\OpacityConverter.cs (1)
48string text = ((string)value).Replace('%', ' ').Trim();
winforms\Managed\System\WinForms\Padding.cs (1)
309valueStr = valueStr.Trim();
winforms\Managed\System\WinForms\SelectionRangeConverter.cs (1)
61string text = ((string)value).Trim();
winforms\Managed\System\WinForms\TableLayoutPanelCellPosition.cs (1)
99string text = ((string)value).Trim();
winforms\Managed\System\WinForms\TrustManager.cs (1)
264strBrowserCommand = strBrowserCommand.Trim();
winforms\Managed\System\WinForms\WebBrowserUriTypeConverter.cs (1)
22uri = new Uri("http://" + uri.OriginalString.Trim());
System.Windows.Forms.DataVisualization (42)
Common\Annotation\TextAnnotation.cs (1)
947 if(GetGraphics() != null && this.Text.Trim().Length > 0)
Common\ChartTypes\BoxPlotChart.cs (2)
923if (text.Trim().Length != 0) 1568 boxPlotSeries.Points[pointIndex++][CustomPropertyName.BoxPlotSeries] = val.Trim();
Common\ChartTypes\ErrorBarChart.cs (1)
980if (text.Trim().Length != 0)
Common\ChartTypes\KagiChart.cs (1)
288string attrValue = series[CustomPropertyName.ReversalAmount].Trim();
Common\ChartTypes\PointAndFigureChart.cs (2)
377string attrValue = series[CustomPropertyName.BoxSize].Trim(); 467string attrValue = series[CustomPropertyName.ReversalAmount].Trim();
Common\ChartTypes\PointChart.cs (1)
831if (text.Trim().Length != 0)
Common\ChartTypes\RadarChart.cs (1)
1199if (text.Trim().Length != 0)
Common\ChartTypes\RenkoChart.cs (1)
304 string attrValue = series[CustomPropertyName.BoxSize].Trim();
Common\ChartTypes\StackedBarChart.cs (1)
1085if (text.Trim().Length != 0)
Common\ChartTypes\StackedColumnChart.cs (1)
1165if (text.Trim().Length != 0)
Common\ChartTypes\StockChart.cs (1)
997if (text.Trim().Length != 0)
Common\Converters\LegendConverters.cs (4)
393margins.Top = int.Parse(values[0].Trim(), CultureInfo.InvariantCulture); 394margins.Bottom = int.Parse(values[1].Trim(), CultureInfo.InvariantCulture); 395margins.Left = int.Parse(values[2].Trim(), CultureInfo.InvariantCulture); 396margins.Right = int.Parse(values[3].Trim(), CultureInfo.InvariantCulture);
Common\DataManager\DataPoint.cs (7)
383 otherAttributeNames[index] = otherAttributeNames[index].Trim().Replace("\n", ","); 384 otherFieldNames[index] = otherFieldNames[index].Trim().Replace("\n", ","); 386otherValueFormat[index] = otherValueFormat[index].Trim().Replace("\n", ","); 4755 values[0] = values[0].Trim(); 4756 values[1] = values[1].Trim(); 6996 values[0] = values[0].Trim(); 6997 values[1] = values[1].Trim();
Common\Formulas\FormulaHelpers.cs (3)
1421string seriesName = seriesFieldParts[0].Trim(); 1503seriesFieldId = seriesFieldId.ToUpperInvariant().Trim(); 1592seriesFieldId = seriesFieldId.ToUpperInvariant().Trim();
Common\General\Axis.cs (1)
4673if (textRows[rowIndex].Length > longestLabelSize && textRows[rowIndex].Trim().IndexOf(' ') > 0)
Common\General\Chart.cs (3)
791 yFieldNames[index] = yFieldNames[index].Replace("\n", ",").Trim(); 825 DataPointCollection.AutoDetectValuesType(series, enumerator, series.XValueMember.Trim(), enumerator, yField); 843 xValueObj = DataPointCollection.ConvertEnumerationItem(enumerator.Current, series.XValueMember.Trim());
Common\General\DataManipulator.cs (3)
340 array[index] = Common.DataManager.Series[seriesName.Trim()]; 346Series newSeries = new Series(seriesName.Trim()); 3044 string formulaString = s.Trim();
Common\General\FormulaData.cs (2)
654seiesArray[index] = Common.DataManager.Series[parts[0].Trim()]; 1088parameterList[i] = parameterList[i].Trim();
Common\General\ImageMap.cs (2)
422string checkValue = value.Trim().Replace("\r", String.Empty).Replace("\n", String.Empty); 443name.Trim().StartsWith("on", StringComparison.OrdinalIgnoreCase))
Common\Utilities\XmlSerializer.cs (2)
1233 classInfo.name = item.Substring(0, pointIndex).Trim(); 1234 propertyInfo.name = item.Substring(pointIndex + 1).Trim();
WinForm\ChartWinControl.cs (2)
2848 seriesList.Add(this.Series[name.Trim()]); 2871 seriesList.Add(this.Series[name.Trim()]);
System.Workflow.Activities (12)
Common\CompModHelpers.cs (1)
1152string parent = paths[i].Trim();
Common\TypeSystemHelpers.cs (5)
82string bracketContent = inputTypeName.Substring(startIndex + 1, endIndex - startIndex - 1).Trim(); 109parameters[loop] = parameters[loop].Trim(); 202string thatAssemblyName = parts[0].Trim(); 217string partName = parts[index].Substring(0, indexOfEquals).Trim().ToLowerInvariant(); 218string partValue = parts[index].Substring(indexOfEquals + 1).Trim().ToLowerInvariant();
CorrelationValidator.cs (3)
476if (String.IsNullOrEmpty(parameterAttribute.Name) || parameterAttribute.Name.Trim().Length == 0) 673if (String.IsNullOrEmpty(aliasAttribute.Name) || aliasAttribute.Name.Trim().Length == 0) 681if (String.IsNullOrEmpty(aliasAttribute.Path) || aliasAttribute.Path.Trim().Length == 0)
Rules\Design\Dialogs\IntellisenseTextBox.cs (1)
473if (string.IsNullOrEmpty(currentValue.Trim()) && this.listBoxAutoComplete.Items.Count > 0)
Rules\Design\Dialogs\RenameRuleObjectDialog.cs (1)
72if (newName.Trim().Length == 0)
WebServiceResponse.cs (1)
256if (this.InputActivityName != null && !String.IsNullOrEmpty(this.InputActivityName.Trim()))
System.Workflow.ComponentModel (42)
AuthoringOM\Behaviors\SynchronizationScope.cs (1)
137string realHandle = handle.Trim().Replace('>', ',');
AuthoringOM\Bind.cs (5)
1218string argName = argNames[index].Trim(); 1220arg = argName.Substring(1, argName.Length - 2).Trim(); 1792this.pathValue = (path != null) ? path.Trim() : String.Empty; 1867string name = this.pathValue.Substring(start, this.index - start).Trim(); 1891string name = this.pathValue.Substring(start, this.index - start - 1).Trim();
AuthoringOM\Compiler\CompileXomlTask.cs (5)
675if (ProjectDirectory == null || ProjectDirectory.Trim().Length == 0) 682if (ProjectExtension == null || ProjectExtension.Trim().Length == 0) 824if (this.KeyContainer != null && this.KeyContainer.Trim().Length > 0) 827if (this.KeyFile != null && this.KeyFile.Trim().Length > 0) 958string warning = warnings[i].Trim();
AuthoringOM\Compiler\TypeSystem\TypeProvider.cs (2)
383assemblyName = name.Substring(indexOfComma + 1).Trim(); 385typeName = typeName.Trim();
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (7)
422if (this.themeNameTextBox.Text == null || this.themeNameTextBox.Text.Trim().Length == 0) 436string path = this.themeLocationTextBox.Text.Trim(); 448if (fileName == null || fileName.Trim().Length == 0 || 449extension == null || extension.Trim().Length == 0) 488if (!this.bufferedTheme.FilePath.Equals(this.themeLocationTextBox.Text.Trim(), StringComparison.OrdinalIgnoreCase)) 505this.bufferedTheme.Name = this.themeNameTextBox.Text.Trim(); 507this.bufferedTheme.Save(this.themeLocationTextBox.Text.Trim());
AuthoringOM\Design\TypeConverters.cs (3)
196value = value.Trim(); 384string activityID = splitValues[0].Trim(); 385string path = splitValues[1].Trim();
AuthoringOM\Serializer\ActivityMarkupSerializer.cs (1)
194string[] lines = cs.Text.Trim().Split(new string[] { "\r\n" }, StringSplitOptions.None);
AuthoringOM\Serializer\WorkflowMarkupSerializationManager.cs (2)
321assemblyName = assemblyName.Trim(); 338typeName = typeName.Trim();
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (5)
527serializationManager.ReportError(CreateSerializationError(SR.GetString(SR.Error_InvalidDataFound, reader.Value.Trim(), obj.GetType().FullName), reader)); 1295throw CreateSerializationError(SR.GetString(SR.Error_SerializerPrimitivePropertyNoLogic, new object[] { "", value.Trim(), "" }), reader); 2484string typename = attrValue.Substring(1, argIndex - 1).Trim(); 2777list.Add(stringBuilder.ToString().Trim()); 2801list.Add(stringBuilder.ToString().Trim());
AuthoringOM\Serializer\WorkflowMarkupSerializerMapping.cs (4)
266string clrNamespace = xmlNamespace.Substring(StandardXomlKeys.CLRNamespaceQualifier.Length).Trim(); 271assemblyName = (index + 1 < clrNamespace.Length) ? clrNamespace.Substring(index + 1).Trim() : String.Empty; 272clrNamespace = clrNamespace.Substring(0, index).Trim(); 307if (xmlnsDefinition.AssemblyName != null && xmlnsDefinition.AssemblyName.Trim().Length > 0)
AuthoringOM\Serializer\XamlInterfaces.cs (1)
178string typename = this.typeName.Trim();
Shared\CompModHelpers.cs (1)
1150string parent = paths[i].Trim();
Shared\TypeSystemHelpers.cs (5)
81string bracketContent = inputTypeName.Substring(startIndex + 1, endIndex - startIndex - 1).Trim(); 108parameters[loop] = parameters[loop].Trim(); 201string thatAssemblyName = parts[0].Trim(); 216string partName = parts[index].Substring(0, indexOfEquals).Trim().ToLowerInvariant(); 217string partValue = parts[index].Substring(indexOfEquals + 1).Trim().ToLowerInvariant();
System.Workflow.Runtime (15)
Hosting\DbResourceAllocator.cs (1)
311if (String.IsNullOrEmpty(connectionString) || String.IsNullOrEmpty(connectionString.Trim()))
Tracking\TrackingExtract.cs (2)
85if ((null == _name) || (0 == _name.Trim().Length)) 151if ((null == _name) || (0 == _name.Trim().Length))
Tracking\TrackingProfileSerializer.cs (12)
93if ((null == version) || (0 == version.Trim().Length)) 264if ((null != type) && (type.Trim().Length > 0)) 395if ((null == location.ActivityType) && ((null == location.ActivityTypeName) || (0 == location.ActivityTypeName.Trim().Length)) && (null == location.ArgumentType) && ((null == location.ArgumentTypeName) || (0 == location.ArgumentTypeName.Trim().Length))) 409if ((null != type) && (type.Trim().Length > 0)) 430if ((null != type) && (type.Trim().Length > 0)) 516if ((null != status) && (status.Trim().Length > 0)) 607if ((null != op) && (op.Trim().Length > 0)) 1092if ((null == loc.ActivityType) && ((null == loc.ActivityTypeName) || (0 == loc.ActivityTypeName.Trim().Length))) 1120if ((null == loc.ActivityType) && ((null == loc.ActivityTypeName) || (0 == loc.ActivityTypeName.Trim().Length))) 1123if ((null == loc.ArgumentType) && ((null == loc.ArgumentTypeName) || (0 == loc.ArgumentTypeName.Trim().Length))) 1242if ((null == condition.Member) || (0 == condition.Member.Trim().Length))
System.WorkflowServices (1)
System\ServiceModel\Persistence\SqlPersistenceProviderFactory.cs (1)
555this.canonicalConnectionString = this.connectionString.Trim();
System.Xml (30)
parent\parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (3)
98identifier = components[0].Trim(); 122string key = keyValuePair[0].Trim(); 123string value = keyValuePair[1].Trim();
System\Xml\Schema\DataTypeImplementation.cs (1)
3476return XmlQualifiedName.Parse(s.Trim(), nsmgr, out prefix);
System\Xml\Schema\DtdParser.cs (1)
680string val = attrDef.DefaultValueExpanded.Trim();
System\Xml\Schema\DtdParserAsync.cs (1)
325string val = attrDef.DefaultValueExpanded.Trim();
System\Xml\Schema\DtdValidator.cs (2)
294value = value.Trim(); 447value = value.Trim();
System\Xml\Schema\FacetChecker.cs (1)
693s = s.Trim();
System\Xml\Schema\Inference\Infer.cs (1)
1442s = s.Trim();
System\Xml\Schema\NamespaceList.cs (1)
31namespaces = namespaces.Trim();
System\Xml\Schema\XdrBuilder.cs (2)
699string s = ((string)obj).Trim(); 1558string str = (attDef.DefaultValueRaw).Trim();
System\Xml\Schema\XdrValidator.cs (2)
389value = value.Trim(); 472value = value.Trim();
System\Xml\Schema\XmlSchemaParticle.cs (1)
142ns = ns.Trim();
System\Xml\Schema\XmlValueConverter.cs (1)
662value = value.Trim();
System\Xml\Schema\XsdBuilder.cs (1)
2269string s = value.Trim();
System\Xml\Schema\XsdDuration.cs (1)
456s = s.Trim();
System\Xml\Serialization\CodeGenerator.cs (1)
1755tempFilesLocation = location.Trim();
System\Xml\Serialization\CodeIdentifier.cs (1)
251string escapedName = names[i].Trim();
System\Xml\Serialization\Compilation.cs (1)
670location = location.Trim();
System\Xml\Serialization\Compiler.cs (1)
247string val = flags[i].Trim();
System\Xml\Serialization\Configuration\XmlSerializerSection.cs (1)
81tempDirectory = tempDirectory.Trim();
System\Xml\Serialization\XmlCodeExporter.cs (1)
293string[] vals = defaultValue.Trim().Split(null);
System\Xml\Serialization\Xmlcustomformatter.cs (3)
374value = value.Trim(); 381value = value.Trim(); 401return value.Trim();
System\Xml\Serialization\XmlSerializationReader.cs (2)
875return value.Trim(); 1340str = str.Trim();
System.Xml.Linq (1)
System\Xml\Linq\XLinq.cs (1)
6713return sw.ToString().Trim();
WindowsBase (11)
Base\MS\Internal\IO\Packaging\InternalRelationshipCollection.cs (1)
202if (relationshipType.Trim() == String.Empty)
Base\MS\Internal\IO\Zip\ZipIOBlockManager.cs (1)
543zipFileName = zipFileName.Trim();
Base\MS\Internal\Security\RightsManagement\ClientSession.cs (1)
559clientLicensorCertificate = clientLicensorCertificate.Trim();
Base\System\IO\Packaging\PackageRelationship.cs (1)
196Debug.Assert(relationshipType.Trim() != String.Empty,
Base\System\IO\Packaging\PackageRelationshipCollection.cs (1)
129Debug.Assert(filter.Trim() != String.Empty,
Base\System\Security\RightsManagement\User.cs (1)
62if (name.Trim().Length == 0)
Base\System\Windows\Input\KeyConverter.cs (1)
90string fullName = ((string)source).Trim();
Base\System\Windows\Input\ModifierKeysConverter.cs (2)
89string modifiersToken = ((string)source).Trim(); 165token = token.Trim();
Base\System\Windows\Markup\XmlCompatibilityReader.cs (2)
965foreach (string pair in content.Trim().Split(' ')) 1013foreach (string prefix in prefixes.Trim().Split(' '))
WsatConfig (2)
CommandLine\ArgumentsParser.cs (2)
104return arg.Substring(0, separator).Trim().ToLowerInvariant(); 367string normalizedAccount = account.Trim();
WsatUI (1)
Configuration\ETWWsatTraceSession.cs (1)
162logFileNameInRegistry = logFileNameInRegistry.Trim();
XamlBuildTask (1)
Microsoft\Build\Tasks\Xaml\XamlBuildTaskServices.cs (1)
335if (semicolonIndex == -1 || nsName.Trim().EndsWith(";", StringComparison.Ordinal))