Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / ManagedLibraries / Remoting / Channels / CORE / StringHelper.cs / 1305376 / StringHelper.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //============================================================ // // File: StringHelper.cs // // Summary: Helper methods for strings. // //=========================================================== using System; using System.IO; using System.Runtime.Remoting; namespace System.Runtime.Remoting.Channels { internal static class StringHelper { internal static bool StartsWithDoubleUnderscore(String str) { if (str.Length < 2) return false; return (str[0] == '_') && (str[1] == '_'); } // StartsWithDoubleUnderscore internal static bool StartsWithAsciiIgnoreCasePrefixLower(String str, String asciiPrefix) { // The caller should know that the arguments aren't null. int prefixLen = asciiPrefix.Length; if (str.Length < prefixLen) return false; for (int i = 0; i < prefixLen; i++) { // The prefix is assumed to be in lowercase if (ToLowerAscii(str[i]) != asciiPrefix[i]) { return false; } } return true; } // StartsWithAsciiIgnoreCase private static char ToLowerAscii(char ch) { if ((ch >= 'A') && (ch <= 'Z')) { return (char)(ch + ('a' - 'A')); } return ch; } // ToLowerAscii } // StringHelper } // namespace System.Runtime.Remoting.Channels // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RepeaterItemCollection.cs
- QualificationDataAttribute.cs
- FormViewDesigner.cs
- KnownBoxes.cs
- ExtensionElementCollection.cs
- DatatypeImplementation.cs
- AttributeUsageAttribute.cs
- AlgoModule.cs
- Vector3dCollection.cs
- DefaultPrintController.cs
- UserControlBuildProvider.cs
- ResourceCodeDomSerializer.cs
- StorageSetMapping.cs
- ObjectStateManagerMetadata.cs
- ParserStreamGeometryContext.cs
- BaseHashHelper.cs
- SerialPinChanges.cs
- DataSetUtil.cs
- StylusTip.cs
- TableStyle.cs
- ScrollableControl.cs
- Point4D.cs
- MULTI_QI.cs
- ResourceSet.cs
- UTF32Encoding.cs
- EnumBuilder.cs
- EventRouteFactory.cs
- TriState.cs
- MenuItem.cs
- DataReaderContainer.cs
- XmlLanguage.cs
- AnchorEditor.cs
- RecipientInfo.cs
- ProtocolsConfiguration.cs
- IpcServerChannel.cs
- SelectedPathEditor.cs
- EventListenerClientSide.cs
- EditableLabelControl.cs
- RequestCachingSection.cs
- ErrorWebPart.cs
- CodeLabeledStatement.cs
- AutomationPropertyInfo.cs
- ConditionCollection.cs
- namescope.cs
- LogRecordSequence.cs
- CollectionViewSource.cs
- SqlUserDefinedAggregateAttribute.cs
- XmlSchemaProviderAttribute.cs
- XmlSchemaType.cs
- PathSegment.cs
- WebAdminConfigurationHelper.cs
- TaskFileService.cs
- StructuredCompositeActivityDesigner.cs
- DiscreteKeyFrames.cs
- CodeAttributeArgument.cs
- StatusStrip.cs
- TypeValidationEventArgs.cs
- RemotingServices.cs
- DecoderExceptionFallback.cs
- TableStyle.cs
- LocalizableAttribute.cs
- SplitterCancelEvent.cs
- ExtendedTransformFactory.cs
- ConfigurationFileMap.cs
- GradientStopCollection.cs
- MsmqIntegrationInputChannel.cs
- SizeConverter.cs
- MaterialCollection.cs
- PerfCounters.cs
- CircleHotSpot.cs
- SchemaEntity.cs
- StreamReader.cs
- AstNode.cs
- SqlParameter.cs
- FixedTextBuilder.cs
- TargetFrameworkUtil.cs
- EncodedStreamFactory.cs
- EncoderExceptionFallback.cs
- ContentElement.cs
- RemotingException.cs
- _LazyAsyncResult.cs
- SelectionChangedEventArgs.cs
- UserControlBuildProvider.cs
- PrintDocument.cs
- DbConnectionOptions.cs
- CodeAttachEventStatement.cs
- SystemThemeKey.cs
- ComponentDispatcherThread.cs
- ClientEventManager.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- PassportPrincipal.cs
- XmlWrappingReader.cs
- XsdDateTime.cs
- ButtonBase.cs
- DataGridViewTopRowAccessibleObject.cs
- TargetParameterCountException.cs
- ColumnReorderedEventArgs.cs
- DockPatternIdentifiers.cs
- OperationParameterInfoCollection.cs
- MonikerUtility.cs