src\Framework\System\Windows\Documents\FixedSchema.cs (11)
401return namespaceUri.Equals(_xpsS0SchemaNamespace, StringComparison.Ordinal);
415if (attrName.Equals("Source", StringComparison.Ordinal) ||
416attrName.Equals("FontUri", StringComparison.Ordinal))
420else if (attrName.Equals("ImageSource", StringComparison.Ordinal))
422if (attrValue.StartsWith(_colorConvertedBitmap, StringComparison.Ordinal))
434else if (attrName.Equals("Color", StringComparison.Ordinal) ||
435attrName.Equals("Fill", StringComparison.Ordinal) ||
436attrName.Equals("Stroke", StringComparison.Ordinal))
439if (attrValue.StartsWith(_contextColor, StringComparison.Ordinal))
734if (attrName.Equals("Source", StringComparison.Ordinal)) // Cannot chain remote ResourceDictionary parts.
777return namespaceUri.Equals(_xpsDocStructureSchemaNamespace, StringComparison.Ordinal);
src\Framework\System\Windows\Markup\BamlReader.cs (13)
404int index = info.Name.LastIndexOf(".", StringComparison.Ordinal);
451int index = cpInfo.Name.LastIndexOf(".", StringComparison.Ordinal);
1320typeName = typeName.Substring(typeName.LastIndexOf(".", StringComparison.Ordinal) + 1);
1440markupString = markupString.Substring(markupString.LastIndexOf(".", StringComparison.Ordinal) + 1);
1567typename = typename.Substring(typename.LastIndexOf(".", StringComparison.Ordinal) + 1);
1981_localName = _name.Substring(_name.LastIndexOf(".", StringComparison.Ordinal) + 1);
2099int index = nodeInfo.Name.LastIndexOf(".", StringComparison.Ordinal);
2170int index = nodeInfo.Name.LastIndexOf(".", StringComparison.Ordinal);
2428typeName = typeName.Substring(typeName.LastIndexOf(".", StringComparison.Ordinal) + 1);
2503typeName = typeName.Substring(typeName.LastIndexOf(".", StringComparison.Ordinal) + 1);
2617typeName = typeName.Substring(typeName.LastIndexOf(".", StringComparison.Ordinal) + 1);
2666(assemblyFullName.StartsWith("PresentationFramework", StringComparison.Ordinal)
2667|| assemblyFullName.StartsWith("System.Xaml", StringComparison.Ordinal)))
fx\src\data\System\Data\Common\DBCommandBuilder.cs (6)
653if (!ADP.IsEmpty(quotePrefix) && (-1 != baseTableName.IndexOf(quotePrefix, StringComparison.Ordinal))) {
656if (!ADP.IsEmpty(quoteSuffix) && (-1 != baseTableName.IndexOf(quoteSuffix, StringComparison.Ordinal))) {
1492if (useQuotes && (name.IndexOf(quotePrefix, currentPos, quotePrefix.Length, StringComparison.Ordinal) == currentPos)) {
1497currentPos = name.IndexOf(quoteSuffix, currentPos, StringComparison.Ordinal);
1507if ((currentPos < name.Length) && (name.IndexOf(quoteSuffix, currentPos, quoteSuffix.Length, StringComparison.Ordinal) == currentPos)) {
1521currentPos = name.IndexOf(Separator, currentPos, StringComparison.Ordinal);
fx\src\data\System\Data\DataSet.cs (15)
1586if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal))
1621if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal))
1951if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal))
2002if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal))
2401if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal))
2465if (reader.LocalName == Keywords.XSD_SCHEMA && reader.NamespaceURI.StartsWith(Keywords.XSD_NS_START, StringComparison.Ordinal))
3122if (string.Compare(nilAttrib, "true", StringComparison.Ordinal) == 0) {// case sensitive true comparison
3131if (string.Equals(_useDataSetSchemaOnly, "true", StringComparison.Ordinal) ||
3132string.Equals(_useDataSetSchemaOnly, "1", StringComparison.Ordinal))
3136else if (!string.Equals(_useDataSetSchemaOnly, "false", StringComparison.Ordinal) &&
3137!string.Equals(_useDataSetSchemaOnly, "0", StringComparison.Ordinal))
3146if (string.Equals(_udtIsWrappedString, "true", StringComparison.Ordinal) ||
3147string.Equals(_udtIsWrappedString, "1", StringComparison.Ordinal))
3152else if (!string.Equals(_udtIsWrappedString, "false", StringComparison.Ordinal) &&
3153!string.Equals(_udtIsWrappedString, "0", StringComparison.Ordinal))
fx\src\data\System\Data\xmlsaver.cs (16)
1590 == String.Compare(pd.Name, "Namespace" , StringComparison.Ordinal) ||
1600 == String.Compare(pd.Name, "PrimaryKey" , StringComparison.Ordinal) ||
1610 == String.Compare(pd.Name, "ColumnName" , StringComparison.Ordinal) ||
1620 == String.Compare(pd.Name, "DefaultValue" , StringComparison.Ordinal) ||
1630 == String.Compare(pd.Name, "TableName" , StringComparison.Ordinal) ||
1640 == String.Compare(pd.Name, "DataSetName" , StringComparison.Ordinal) ||
1650 == String.Compare(pd.Name, "AllowDBNull" , StringComparison.Ordinal) ||
1660 == String.Compare(pd.Name, "Unique" , StringComparison.Ordinal) ||
1670 == String.Compare(pd.Name, "NestedInDataSet" , StringComparison.Ordinal) ||
1680 == String.Compare(pd.Name, "Locale" , StringComparison.Ordinal) ||
1690 == String.Compare(pd.Name, "CaseSensitive", StringComparison.Ordinal) ||
1700 == String.Compare(pd.Name, "RemotingFormat" , StringComparison.Ordinal)
176if (0 == String.Compare(pd.Name, "DataType", StringComparison.Ordinal)) {
191if (0 == String.Compare(pd.Name, "Attribute", StringComparison.Ordinal)) {
1415if (!rel.RelationName.StartsWith(rName, StringComparison.Ordinal))
1423if (!unique.ConstraintName.StartsWith("Constraint", StringComparison.Ordinal))
fx\src\data\System\Data\XMLSchema.cs (9)
296if (propName.StartsWith(Keywords.MSD_FK_PREFIX, StringComparison.Ordinal))
301if ((instance is DataRelation) && (propName.StartsWith(Keywords.MSD_REL_PREFIX, StringComparison.Ordinal))) {
304else if ((instance is DataRelation) && (propName.StartsWith(Keywords.MSD_FK_PREFIX, StringComparison.Ordinal))) {
385if (0 == String.Compare(rels[i].RelationName, strName, StringComparison.Ordinal))
715if (this.FromInference && ds.Tables.Count == 0 && String.Compare(ds.DataSetName, "NewDataSet", StringComparison.Ordinal) == 0)
992if (field.StartsWith("@", StringComparison.Ordinal)) {
1535public int CompareTo(object obj) { return String.Compare(name, (string)obj, StringComparison.Ordinal); }
1966(string.Compare(attrib.QualifiedName.Namespace, column.Namespace, StringComparison.Ordinal) == 0))
2126(string.Compare(elem.QualifiedName.Namespace, column.Namespace, StringComparison.Ordinal) == 0))
System\ServiceModel\Channels\FaultConverter.cs (14)
95if (string.Compare(fault.Code.Namespace, version.Envelope.Namespace, StringComparison.Ordinal) == 0
96&& string.Compare(fault.Code.Name, MessageStrings.MustUnderstandFault, StringComparison.Ordinal) == 0)
132if (string.Compare(code.Namespace, version.Addressing.Namespace, StringComparison.Ordinal) == 0)
134if (string.Compare(code.Name, AddressingStrings.ActionNotSupported, StringComparison.Ordinal) == 0)
139else if (string.Compare(code.Name, AddressingStrings.DestinationUnreachable, StringComparison.Ordinal) == 0)
144else if (string.Compare(code.Name, Addressing10Strings.InvalidAddressingHeader, StringComparison.Ordinal) == 0)
146if (code.SubCode != null && string.Compare(code.SubCode.Namespace, version.Addressing.Namespace, StringComparison.Ordinal) == 0 &&
147string.Compare(code.SubCode.Name, Addressing10Strings.InvalidCardinality, StringComparison.Ordinal) == 0)
155if (string.Compare(code.Name, Addressing10Strings.MessageAddressingHeaderRequired, StringComparison.Ordinal) == 0)
160else if (string.Compare(code.Name, Addressing10Strings.InvalidAddressingHeader, StringComparison.Ordinal) == 0)
168if (string.Compare(code.Name, Addressing200408Strings.MessageInformationHeaderRequired, StringComparison.Ordinal) == 0)
173else if (string.Compare(code.Name, Addressing200408Strings.InvalidMessageInformationHeader, StringComparison.Ordinal) == 0)
185if (string.Compare(code.Namespace, version.Addressing.Namespace, StringComparison.Ordinal) == 0)
187if (string.Compare(code.Name, AddressingStrings.EndpointUnavailable, StringComparison.Ordinal) == 0)
System\ServiceModel\Channels\MessageFault.cs (7)
139if (String.Compare(code.Name, MessageStrings.MustUnderstandFault, StringComparison.Ordinal) != 0)
144if ((String.Compare(code.Namespace, EnvelopeVersion.Soap11.Namespace, StringComparison.Ordinal) != 0) &&
145(String.Compare(code.Namespace, EnvelopeVersion.Soap12.Namespace, StringComparison.Ordinal) != 0))
234if ((String.Compare(headerInfo.Name, Message12Strings.NotUnderstood, StringComparison.Ordinal) == 0) &&
235(String.Compare(headerInfo.Namespace, Message12Strings.Namespace, StringComparison.Ordinal) == 0))
247(String.Compare(name, actualName, StringComparison.Ordinal) == 0) &&
248(String.Compare(ns, actualNamespace, StringComparison.Ordinal) == 0))
System\ServiceModel\Channels\ServiceChannel.cs (8)
1114if (string.Compare(code.Namespace, FaultCodeConstants.Namespaces.NetDispatch, StringComparison.Ordinal) == 0)
1116if (string.Compare(code.Name, FaultCodeConstants.Codes.SessionTerminated, StringComparison.Ordinal) == 0)
1121if (string.Compare(code.Name, FaultCodeConstants.Codes.TransactionAborted, StringComparison.Ordinal) == 0)
1128if (string.Compare(code.Namespace, SecurityVersion.Default.HeaderNamespace.Value, StringComparison.Ordinal) == 0)
1130if (string.Compare(code.Name, SecurityVersion.Default.FailedAuthenticationFaultCode.Value, StringComparison.Ordinal) == 0)
1139if (string.Compare(code.Namespace, FaultCodeConstants.Namespaces.NetDispatch, StringComparison.Ordinal) == 0)
1141if (string.Compare(code.Name, FaultCodeConstants.Codes.InternalServiceFault, StringComparison.Ordinal) == 0)
1154if (string.Compare(code.Name, FaultCodeConstants.Codes.DeserializationFailed, StringComparison.Ordinal) == 0)
System\UriTemplate.cs (9)
68if (template.StartsWith("/", StringComparison.Ordinal))
787Fx.Assert(relPathSeg.EndsWith("/", StringComparison.Ordinal), "problem with relative path segment");
813if (relPathSeg.EndsWith("/", StringComparison.Ordinal))
915if (string.Compare(extraParameter, kvp.Value, StringComparison.Ordinal) == 0)
1235if (varName.IndexOf(UriTemplate.WildcardPath, StringComparison.Ordinal) != -1)
1274if (varName.IndexOf(UriTemplate.WildcardPath, StringComparison.Ordinal) != -1)
1505defaultValue, StringComparison.Ordinal) != 0)
1645if (string.Compare(extraParameter, kvp.Value, StringComparison.Ordinal) == 0)
1670Fx.Assert(!segment.EndsWith("/", StringComparison.Ordinal), "We are expecting to check this earlier");
System\UriTemplateCompoundPathSegment.cs (9)
34bool endsWithSlash = segment.EndsWith("/", StringComparison.Ordinal);
40int nextVarStart = segment.IndexOf("{", StringComparison.Ordinal);
43if (firstLiteral.IndexOf(UriTemplate.WildcardPath, StringComparison.Ordinal) != -1)
52int nextVarEnd = segment.IndexOf("}", nextVarStart + 1, StringComparison.Ordinal);
66nextVarStart = segment.IndexOf("{", nextVarEnd + 1, StringComparison.Ordinal);
85if (literal.IndexOf(UriTemplate.WildcardPath, StringComparison.Ordinal) != -1)
197if (segment.StartsWith(this.firstLiteral, StringComparison.Ordinal))
208int nextLiteralPosition = segment.IndexOf(this.varLitPairs[pairIndex].Literal, segmentPosition, StringComparison.Ordinal);
232segment.EndsWith(this.varLitPairs[varLitPairs.Count - 1].Literal, StringComparison.Ordinal))
Handlers\AssemblyResourceLoader.cs (6)
200if (String.Equals(resourceName, "WebForms.js", StringComparison.Ordinal)) {
209else if (String.Equals(resourceName, "WebUIValidation.js", StringComparison.Ordinal)) {
218else if (String.Equals(resourceName, "SmartNav.htm", StringComparison.Ordinal)) {
227else if (String.Equals(resourceName, "SmartNav.js", StringComparison.Ordinal)) {
245if ((wra != null) && String.Equals(wra.WebResource, resourceName, StringComparison.Ordinal)) {
672if (String.Equals(embeddedResourceName, resourceName, StringComparison.Ordinal)) {
Security\ADMembershipProvider.cs (8)
356if ((String.Compare(connProtection, "Secure", StringComparison.Ordinal) != 0) &&
357(String.Compare(connProtection, "None", StringComparison.Ordinal) != 0))
3162if (String.Compare(valueName, "attributeMapUsername", StringComparison.Ordinal) == 0)
3242if (String.Compare(valueName, "attributeMapUsername", StringComparison.Ordinal) != 0)
3497if (!(adspath.StartsWith("LDAP", StringComparison.Ordinal)))
3547if (String.Compare(connProtection, "Secure", StringComparison.Ordinal) == 0)
4175bool endsWith = containerDN.EndsWith(namingContext, StringComparison.Ordinal);
4176int lastIndexOf = containerDN.LastIndexOf(namingContext, StringComparison.Ordinal);
UI\WebControls\Calendar.cs (2)
1163if (String.Compare(eventArgument, 0, NAVIGATE_MONTH_COMMAND, 0, NAVIGATE_MONTH_COMMAND.Length, StringComparison.Ordinal) == 0) {
1181else if (String.Compare(eventArgument, 0, SELECT_RANGE_COMMAND, 0, SELECT_RANGE_COMMAND.Length, StringComparison.Ordinal) == 0) {
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicControlAdapter.cs (9)
41if (url.IndexOf(":", StringComparison.Ordinal) != -1)
174!target.StartsWith("http:", StringComparison.Ordinal) &&
175!target.StartsWith("https:", StringComparison.Ordinal);
185if (target.StartsWith(Constants.FormIDPrefix, StringComparison.Ordinal)) {
223Debug.Assert (target.StartsWith (prefix, StringComparison.Ordinal));
726pos = queryString.IndexOf(AMP, offset, StringComparison.Ordinal);
753int pos = queryString.IndexOf(name, StringComparison.Ordinal);
755int pos2 = queryString.IndexOf(AMP, pos, StringComparison.Ordinal);
761pos2 = queryString.IndexOf(AMP, StringComparison.Ordinal);
UI\MobileControls\Design\MobileContainerDesigner.cs (10)
502if (childContent.StartsWith("<", StringComparison.Ordinal) &&
503!(childContent.StartsWith("</", StringComparison.Ordinal) || (childContent.EndsWith("/>", StringComparison.Ordinal))))
505if (!childUpperContent.StartsWith("<" + tagPrefix.ToUpper(CultureInfo.InvariantCulture) + ":", StringComparison.Ordinal))
510else if (childContent.StartsWith("</", StringComparison.Ordinal))
515childUpperContent.StartsWith("<DEVICESPECIFIC", StringComparison.Ordinal) &&
516childUpperContent.EndsWith(">", StringComparison.Ordinal))
523childUpperContent.StartsWith("<DEVICESPECIFIC", StringComparison.Ordinal) &&
524childUpperContent.EndsWith("/>", StringComparison.Ordinal))
529else if (0 == nestingLevel && 0 == String.Compare(childUpperContent, "</DEVICESPECIFIC>", StringComparison.Ordinal))
UI\MobileControls\Design\TemplatingOptionsDialog.cs (5)
296if (0 == String.Compare(_schemasUrl[i], urlSchema, StringComparison.Ordinal))
385if (String.Compare(str, (String) obj, StringComparison.Ordinal) == 0)
489if (0 != String.Compare(choice.Xmlns, urlSchema, StringComparison.Ordinal))
497if (0 == String.Compare(choiceTmp.Xmlns, previousUrlSchema, StringComparison.Ordinal))
508if (0 == String.Compare(_schemasUrl[i], previousUrlSchema, StringComparison.Ordinal))