Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Routing / ParameterSubsegment.cs / 1305376 / ParameterSubsegment.cs
namespace System.Web.Routing { // Represents a parameter subsegment of a ContentPathSegment internal sealed class ParameterSubsegment : PathSubsegment { public ParameterSubsegment(string parameterName) { if (parameterName.StartsWith("*", StringComparison.Ordinal)) { ParameterName = parameterName.Substring(1); IsCatchAll = true; } else { ParameterName = parameterName; } } public bool IsCatchAll { get; private set; } public string ParameterName { get; private set; } #if ROUTE_DEBUGGING public override string LiteralText { get { return "{" + (IsCatchAll ? "*" : String.Empty) + ParameterName + "}"; } } public override string ToString() { return "{" + (IsCatchAll ? "*" : String.Empty) + ParameterName + "}"; } #endif } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. namespace System.Web.Routing { // Represents a parameter subsegment of a ContentPathSegment internal sealed class ParameterSubsegment : PathSubsegment { public ParameterSubsegment(string parameterName) { if (parameterName.StartsWith("*", StringComparison.Ordinal)) { ParameterName = parameterName.Substring(1); IsCatchAll = true; } else { ParameterName = parameterName; } } public bool IsCatchAll { get; private set; } public string ParameterName { get; private set; } #if ROUTE_DEBUGGING public override string LiteralText { get { return "{" + (IsCatchAll ? "*" : String.Empty) + ParameterName + "}"; } } public override string ToString() { return "{" + (IsCatchAll ? "*" : String.Empty) + ParameterName + "}"; } #endif } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SimpleApplicationHost.cs
- StreamGeometryContext.cs
- CacheMode.cs
- DataGridViewColumnStateChangedEventArgs.cs
- StopStoryboard.cs
- WsdlContractConversionContext.cs
- ToolStripGripRenderEventArgs.cs
- WindowsAuthenticationModule.cs
- TCEAdapterGenerator.cs
- SqlXmlStorage.cs
- AmbientProperties.cs
- RayHitTestParameters.cs
- ExpressionBuilderContext.cs
- DataGridViewCellConverter.cs
- MenuItemBinding.cs
- UpdatePanelTrigger.cs
- DateRangeEvent.cs
- RelatedPropertyManager.cs
- ComplexTypeEmitter.cs
- FontConverter.cs
- TextMarkerSource.cs
- PlanCompilerUtil.cs
- TreeNodeClickEventArgs.cs
- ChtmlTextWriter.cs
- FormsAuthenticationConfiguration.cs
- ParserStreamGeometryContext.cs
- GridViewDeletedEventArgs.cs
- AmbientEnvironment.cs
- Soap11ServerProtocol.cs
- InstalledVoice.cs
- BaseDataBoundControl.cs
- XmlAttributeProperties.cs
- SafeLocalAllocation.cs
- Pair.cs
- Console.cs
- AssociationSetMetadata.cs
- TokenBasedSet.cs
- BulletedListEventArgs.cs
- AsyncCompletedEventArgs.cs
- SqlUtils.cs
- LogRestartAreaEnumerator.cs
- TextParagraphCache.cs
- WindowVisualStateTracker.cs
- UpdateRecord.cs
- TreeBuilderXamlTranslator.cs
- GuidConverter.cs
- SqlTypeConverter.cs
- DbConnectionPoolGroup.cs
- SetStoryboardSpeedRatio.cs
- SettingsSection.cs
- CredentialCache.cs
- SQLChars.cs
- UnsafeNativeMethods.cs
- HostingPreferredMapPath.cs
- TypeConstant.cs
- BitmapMetadata.cs
- wgx_exports.cs
- VisualBasic.cs
- NavigationWindowAutomationPeer.cs
- SymmetricSecurityProtocolFactory.cs
- SafeFindHandle.cs
- BigInt.cs
- XNodeNavigator.cs
- InvokeMemberBinder.cs
- DbProviderFactories.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- HttpCacheParams.cs
- DuplicateWaitObjectException.cs
- ClientApiGenerator.cs
- CounterSampleCalculator.cs
- PreviewPageInfo.cs
- PropertyToken.cs
- KeyBinding.cs
- DownloadProgressEventArgs.cs
- FontStyleConverter.cs
- BevelBitmapEffect.cs
- ExtendedProperty.cs
- XmlDomTextWriter.cs
- XmlObjectSerializerReadContext.cs
- Rethrow.cs
- FrameSecurityDescriptor.cs
- GrammarBuilderBase.cs
- CodeSubDirectoriesCollection.cs
- SqlConnectionPoolProviderInfo.cs
- QueryContinueDragEventArgs.cs
- CodeIdentifiers.cs
- GridSplitterAutomationPeer.cs
- WindowsBrush.cs
- Run.cs
- MDIClient.cs
- PropertyChangedEventArgs.cs
- ParameterCollection.cs
- wgx_exports.cs
- ArrayHelper.cs
- ObjectListCommand.cs
- ThousandthOfEmRealDoubles.cs
- NetSectionGroup.cs
- Cursors.cs
- DataServiceProcessingPipeline.cs
- MimeTypePropertyAttribute.cs