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
- TrackingMemoryStreamFactory.cs
- ItemsControl.cs
- TablePatternIdentifiers.cs
- DataGridColumnsPage.cs
- UnmanagedMemoryStreamWrapper.cs
- X509ClientCertificateAuthentication.cs
- SatelliteContractVersionAttribute.cs
- Triangle.cs
- CaretElement.cs
- ConfigurationSectionCollection.cs
- DesignerDataConnection.cs
- ToolStripDropDownButton.cs
- HttpWriter.cs
- HtmlTextArea.cs
- Char.cs
- formatter.cs
- FileFormatException.cs
- ClientUrlResolverWrapper.cs
- ParallelTimeline.cs
- FacetValueContainer.cs
- InvokeBinder.cs
- ThemeInfoAttribute.cs
- BaseValidator.cs
- EventMappingSettings.cs
- DataGridCell.cs
- SqlDataSource.cs
- MarshalDirectiveException.cs
- Vector3DAnimationBase.cs
- SecurityResources.cs
- MenuItem.cs
- List.cs
- WebPartCancelEventArgs.cs
- DoubleAnimationUsingKeyFrames.cs
- Clock.cs
- BamlBinaryReader.cs
- CommonGetThemePartSize.cs
- ProjectionPath.cs
- ByteStream.cs
- ClaimSet.cs
- WindowsButton.cs
- ControlPaint.cs
- Activity.cs
- FixedSOMSemanticBox.cs
- WsatTransactionHeader.cs
- GetPolicyDetailsRequest.cs
- PersonalizationProvider.cs
- EntitySqlException.cs
- CompressEmulationStream.cs
- XmlNodeChangedEventManager.cs
- StretchValidation.cs
- BitmapEffectInputData.cs
- IPGlobalProperties.cs
- WhitespaceReader.cs
- SQLBinaryStorage.cs
- Image.cs
- WindowsPrincipal.cs
- XamlGridLengthSerializer.cs
- XmlSchemaSimpleContentExtension.cs
- NetWebProxyFinder.cs
- PolicyValidationException.cs
- DataGridViewIntLinkedList.cs
- Page.cs
- ListenerAdapter.cs
- ProcessModuleCollection.cs
- ProfileModule.cs
- CodeParameterDeclarationExpressionCollection.cs
- DataSetMappper.cs
- validationstate.cs
- SafeNativeMethods.cs
- StatusBarPanel.cs
- XmlIncludeAttribute.cs
- SqlExpressionNullability.cs
- ReflectionServiceProvider.cs
- compensatingcollection.cs
- LocatorManager.cs
- BitConverter.cs
- GetLedgerEntryForRecipientRequest.cs
- MenuItemStyle.cs
- RepeaterItemCollection.cs
- SystemColors.cs
- XmlFormatExtensionPrefixAttribute.cs
- Substitution.cs
- ConstructorNeedsTagAttribute.cs
- AssemblySettingAttributes.cs
- RijndaelManaged.cs
- HotSpotCollectionEditor.cs
- StateMachineDesignerPaint.cs
- AmbientValueAttribute.cs
- WebPartDisplayModeEventArgs.cs
- XmlDownloadManager.cs
- Mapping.cs
- RegexCharClass.cs
- DataGridViewControlCollection.cs
- ISessionStateStore.cs
- PanningMessageFilter.cs
- MultipartIdentifier.cs
- DropShadowEffect.cs
- GridErrorDlg.cs
- VBCodeProvider.cs
- SrgsDocumentParser.cs