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
- PermissionRequestEvidence.cs
- XmlDataImplementation.cs
- EncodingTable.cs
- TextDecorationCollection.cs
- ISFClipboardData.cs
- OutputCacheSection.cs
- TransactionManager.cs
- StrokeDescriptor.cs
- ResolveCriteria11.cs
- BrowserTree.cs
- BamlMapTable.cs
- Char.cs
- ServiceReflector.cs
- XmlQueryContext.cs
- Models.cs
- LinearKeyFrames.cs
- LayoutInformation.cs
- BamlTreeMap.cs
- ExpressionBuilder.cs
- StateDesigner.cs
- SiteMembershipCondition.cs
- PointHitTestResult.cs
- ActivityCodeDomSerializationManager.cs
- ObjectQueryExecutionPlan.cs
- RoleGroup.cs
- ObjectKeyFrameCollection.cs
- OperatingSystem.cs
- ACE.cs
- OutputScopeManager.cs
- XmlSchemaCollection.cs
- FormViewUpdatedEventArgs.cs
- ProcessHost.cs
- ReadOnlyDataSourceView.cs
- WindowsUpDown.cs
- DataGridViewBindingCompleteEventArgs.cs
- PageCatalogPart.cs
- CodeExpressionStatement.cs
- WindowHideOrCloseTracker.cs
- XPathScanner.cs
- SQLMoney.cs
- WindowsGrip.cs
- AssemblyInfo.cs
- LifetimeServices.cs
- Thumb.cs
- ModelPerspective.cs
- HttpChannelBindingToken.cs
- UdpSocket.cs
- SafeWaitHandle.cs
- IriParsingElement.cs
- NodeFunctions.cs
- VectorConverter.cs
- IProvider.cs
- OdbcConnection.cs
- TimeSpanSecondsConverter.cs
- ToolStripHighContrastRenderer.cs
- SQLMoneyStorage.cs
- EventLogger.cs
- FlowNode.cs
- SizeAnimationBase.cs
- PropertyInformationCollection.cs
- PageSettings.cs
- AnimationClock.cs
- RowCache.cs
- LineGeometry.cs
- AutoResetEvent.cs
- SignatureDescription.cs
- HttpListenerException.cs
- Package.cs
- lengthconverter.cs
- Color.cs
- EventDescriptor.cs
- ClickablePoint.cs
- RuleValidation.cs
- Set.cs
- NativeBuffer.cs
- OLEDB_Enum.cs
- GiveFeedbackEvent.cs
- LogReserveAndAppendState.cs
- SourceItem.cs
- MaskedTextProvider.cs
- SafePointer.cs
- SamlAssertionKeyIdentifierClause.cs
- OdbcHandle.cs
- FormClosingEvent.cs
- ITreeGenerator.cs
- WsdlInspector.cs
- DoubleCollection.cs
- TemplateParser.cs
- RemoteArgument.cs
- DataGridViewCellStyleConverter.cs
- SystemSounds.cs
- CLSCompliantAttribute.cs
- Duration.cs
- MatrixUtil.cs
- StreamHelper.cs
- CacheHelper.cs
- UnSafeCharBuffer.cs
- RSAProtectedConfigurationProvider.cs
- HtmlShim.cs
- CustomServiceCredentials.cs