Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- assertwrapper.cs
- ProfilePropertyNameValidator.cs
- FrameworkElement.cs
- Parser.cs
- ConnectionStringsExpressionBuilder.cs
- ProxyManager.cs
- RotateTransform.cs
- ProfileSettings.cs
- XmlAttributes.cs
- XmlElementAttribute.cs
- SelfIssuedSamlTokenFactory.cs
- BitStream.cs
- HyperLink.cs
- DataGridViewRowStateChangedEventArgs.cs
- SiteMapProvider.cs
- SurrogateSelector.cs
- HashSet.cs
- QuaternionAnimationUsingKeyFrames.cs
- X509Extension.cs
- DesignerListAdapter.cs
- MenuCommand.cs
- ImageAnimator.cs
- ConnectionStringsSection.cs
- BitSet.cs
- XmlSchemaAnyAttribute.cs
- SessionParameter.cs
- SingleObjectCollection.cs
- SurrogateChar.cs
- TimeSpan.cs
- RawStylusInputCustomDataList.cs
- XmlValidatingReader.cs
- DataGridViewCell.cs
- ProfilePropertySettings.cs
- MsmqIntegrationOutputChannel.cs
- WebPartMinimizeVerb.cs
- PrivilegedConfigurationManager.cs
- InvariantComparer.cs
- DecoderReplacementFallback.cs
- UDPClient.cs
- HtmlProps.cs
- DependencyPropertyConverter.cs
- XsdBuildProvider.cs
- WebPartZoneBase.cs
- ParameterRetriever.cs
- dataprotectionpermission.cs
- PropertyPathConverter.cs
- DataSetFieldSchema.cs
- TreeNode.cs
- ListenerServiceInstallComponent.cs
- FontSource.cs
- LineServices.cs
- MailAddressCollection.cs
- DataGridTable.cs
- Button.cs
- Annotation.cs
- ToolStripRenderEventArgs.cs
- ProtocolState.cs
- ContainsRowNumberChecker.cs
- BooleanFacetDescriptionElement.cs
- MultiBindingExpression.cs
- WsdlHelpGeneratorElement.cs
- XmlWrappingWriter.cs
- XmlObjectSerializerReadContextComplex.cs
- TaiwanLunisolarCalendar.cs
- EntityKey.cs
- InitializationEventAttribute.cs
- LocalTransaction.cs
- HandlerBase.cs
- HtmlElementErrorEventArgs.cs
- DatePickerTextBox.cs
- SafeNativeMethods.cs
- SequenceRange.cs
- RenderData.cs
- XmlQueryCardinality.cs
- Geometry3D.cs
- ArgumentElement.cs
- TextTreeTextNode.cs
- RelatedImageListAttribute.cs
- RelationshipDetailsRow.cs
- TextSelection.cs
- ContentPresenter.cs
- XmlStreamedByteStreamReader.cs
- LineBreak.cs
- DateTimePicker.cs
- UserNameSecurityTokenAuthenticator.cs
- DataControlHelper.cs
- AnnotationAdorner.cs
- ButtonColumn.cs
- PersonalizableTypeEntry.cs
- MasterPage.cs
- SessionEndingCancelEventArgs.cs
- RequiredFieldValidator.cs
- PropertyGrid.cs
- CaretElement.cs
- FrameworkReadOnlyPropertyMetadata.cs
- Number.cs
- RegistryPermission.cs
- CustomPopupPlacement.cs
- DES.cs
- DummyDataSource.cs