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
- PropertyTabAttribute.cs
- DependencyPropertyAttribute.cs
- CaretElement.cs
- ScriptingScriptResourceHandlerSection.cs
- TimeoutValidationAttribute.cs
- GenerateHelper.cs
- EntityTransaction.cs
- TextRange.cs
- MultipleViewPatternIdentifiers.cs
- TabRenderer.cs
- ParserOptions.cs
- SegmentTree.cs
- ChunkedMemoryStream.cs
- DBDataPermissionAttribute.cs
- WindowsTitleBar.cs
- TranslateTransform3D.cs
- ListenDesigner.cs
- assertwrapper.cs
- FlatButtonAppearance.cs
- HttpDigestClientElement.cs
- MarshalByRefObject.cs
- KerberosRequestorSecurityToken.cs
- Rectangle.cs
- FormatException.cs
- PixelFormatConverter.cs
- Parser.cs
- ConfigurationCollectionAttribute.cs
- XmlSerializerNamespaces.cs
- User.cs
- DataControlHelper.cs
- FontCacheLogic.cs
- DrawingCollection.cs
- Models.cs
- HandledEventArgs.cs
- Nullable.cs
- HttpHandlerAction.cs
- TextModifier.cs
- CrossContextChannel.cs
- RayHitTestParameters.cs
- ChangePassword.cs
- LinearKeyFrames.cs
- DocumentsTrace.cs
- SecurityChannelFaultConverter.cs
- CodeMethodInvokeExpression.cs
- AdornerPresentationContext.cs
- SourceInterpreter.cs
- DbgUtil.cs
- cryptoapiTransform.cs
- XmlValidatingReader.cs
- TextInfo.cs
- AssociationTypeEmitter.cs
- ExternalException.cs
- CDSCollectionETWBCLProvider.cs
- ConnectionManagementElementCollection.cs
- EntityDataSourceQueryBuilder.cs
- EndpointDiscoveryMetadataCD1.cs
- Oid.cs
- SearchForVirtualItemEventArgs.cs
- DrawingImage.cs
- DataGridViewDataErrorEventArgs.cs
- SecurityTokenReferenceStyle.cs
- SerializationSectionGroup.cs
- InheritanceContextHelper.cs
- InputScope.cs
- DataGridViewCellStyle.cs
- FrameworkObject.cs
- File.cs
- GeometryHitTestParameters.cs
- XamlTypeMapper.cs
- COM2PictureConverter.cs
- SystemWebExtensionsSectionGroup.cs
- PathFigureCollection.cs
- StreamInfo.cs
- Pointer.cs
- PerspectiveCamera.cs
- SByte.cs
- MsmqIntegrationChannelListener.cs
- CorePropertiesFilter.cs
- InvalidProgramException.cs
- ActivatedMessageQueue.cs
- DesignerActionService.cs
- DetailsViewPageEventArgs.cs
- KerberosTicketHashIdentifierClause.cs
- InputLanguageSource.cs
- CompiledXpathExpr.cs
- Pair.cs
- ThreadInterruptedException.cs
- CreatingCookieEventArgs.cs
- ConfigXmlElement.cs
- TextFormatterHost.cs
- SqlTriggerContext.cs
- DirectoryLocalQuery.cs
- BitmapEffectDrawing.cs
- ExpandedWrapper.cs
- BehaviorEditorPart.cs
- InstancePersistenceException.cs
- MatrixIndependentAnimationStorage.cs
- FunctionImportElement.cs
- TypeReference.cs
- Logging.cs