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
- Cursors.cs
- UserControlBuildProvider.cs
- HierarchicalDataSourceControl.cs
- ToolboxItemFilterAttribute.cs
- AtomParser.cs
- DrawingImage.cs
- FontSource.cs
- WindowsProgressbar.cs
- BitStream.cs
- XsltInput.cs
- SiteMapNodeItem.cs
- ResXDataNode.cs
- ProxyWebPart.cs
- PreloadedPackages.cs
- UpdatePanel.cs
- Transform3DGroup.cs
- FigureHelper.cs
- CodeTypeConstructor.cs
- RequestFactory.cs
- SystemIPv6InterfaceProperties.cs
- PerformanceCounters.cs
- GeneralTransform3DTo2D.cs
- AuthStoreRoleProvider.cs
- ComponentEvent.cs
- Shape.cs
- PrintingPermission.cs
- WindowsButton.cs
- OAVariantLib.cs
- EqualityArray.cs
- FacetChecker.cs
- CmsUtils.cs
- StoreItemCollection.Loader.cs
- Directory.cs
- HelpEvent.cs
- Char.cs
- DesignerDataColumn.cs
- SamlAdvice.cs
- wgx_render.cs
- HighlightVisual.cs
- LinkGrep.cs
- prefixendpointaddressmessagefilter.cs
- EntityTransaction.cs
- PagedControl.cs
- WeakReference.cs
- XmlNamespaceMappingCollection.cs
- TypeCollectionPropertyEditor.cs
- EntityProviderServices.cs
- ControlPropertyNameConverter.cs
- LinkClickEvent.cs
- TransportSecurityBindingElement.cs
- SQlBooleanStorage.cs
- ConfigXmlWhitespace.cs
- ECDiffieHellmanCng.cs
- DirectoryObjectSecurity.cs
- ColorAnimationUsingKeyFrames.cs
- DataGridViewLayoutData.cs
- MenuItemCollection.cs
- SendOperation.cs
- ErrorWebPart.cs
- TrackingQueryElement.cs
- DescendentsWalkerBase.cs
- DataPagerFieldCollection.cs
- DragDrop.cs
- DelimitedListTraceListener.cs
- MatrixUtil.cs
- DataGrid.cs
- ProtocolsConfiguration.cs
- DecryptedHeader.cs
- CacheAxisQuery.cs
- Size3D.cs
- UnsafeNativeMethods.cs
- InternalTypeHelper.cs
- SqlDependencyListener.cs
- HandlerBase.cs
- CodeNamespaceCollection.cs
- InvalidEnumArgumentException.cs
- SocketCache.cs
- SmtpDateTime.cs
- LocatorManager.cs
- SqlGenerator.cs
- SelectionWordBreaker.cs
- Queue.cs
- Select.cs
- WindowVisualStateTracker.cs
- SQLInt64.cs
- PieceDirectory.cs
- DataGridRowsPresenter.cs
- ParameterCollection.cs
- FormViewDeletedEventArgs.cs
- TreeViewCancelEvent.cs
- CommandHelpers.cs
- FileEnumerator.cs
- TextServicesPropertyRanges.cs
- sqlser.cs
- DescendantQuery.cs
- CodeCommentStatementCollection.cs
- RightNameExpirationInfoPair.cs
- NativeBuffer.cs
- SessionEndingEventArgs.cs
- XPathException.cs