Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Routing / ContentPathSegment.cs / 1305376 / ContentPathSegment.cs
namespace System.Web.Routing { using System.Collections.Generic; using System.Linq; // Represents a segment of a URL that is not a separator. It contains subsegments such as literals and parameters. internal sealed class ContentPathSegment : PathSegment { public ContentPathSegment(IListsubsegments) { Subsegments = subsegments; } public bool IsCatchAll { get { // return Subsegments.Any (seg => (seg is ParameterSubsegment) && (((ParameterSubsegment)seg).IsCatchAll)); } } public IList Subsegments { get; private set; } #if ROUTE_DEBUGGING public override string LiteralText { get { List s = new List (); foreach (PathSubsegment subsegment in Subsegments) { s.Add(subsegment.LiteralText); } return String.Join(String.Empty, s.ToArray()); } } public override string ToString() { List s = new List (); foreach (PathSubsegment subsegment in Subsegments) { s.Add(subsegment.ToString()); } return "[ " + String.Join(", ", s.ToArray()) + " ]"; } #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
- filewebresponse.cs
- DesignerActionPropertyItem.cs
- ImageField.cs
- WebBrowserEvent.cs
- PropertyInfoSet.cs
- StrongNameIdentityPermission.cs
- ProcessThreadDesigner.cs
- XmlCharCheckingReader.cs
- PixelFormat.cs
- DrawingContextWalker.cs
- WebPartDisplayModeEventArgs.cs
- IdentityValidationException.cs
- SinglePageViewer.cs
- ProfileManager.cs
- FormViewUpdatedEventArgs.cs
- ApplicationDirectoryMembershipCondition.cs
- DelegateTypeInfo.cs
- ExternalCalls.cs
- PathGeometry.cs
- XpsFixedDocumentSequenceReaderWriter.cs
- DateTimeConstantAttribute.cs
- AutomationProperties.cs
- CharKeyFrameCollection.cs
- ResourceExpressionEditorSheet.cs
- RelatedCurrencyManager.cs
- Accessible.cs
- Stack.cs
- CodeFieldReferenceExpression.cs
- SessionParameter.cs
- MultiTouchSystemGestureLogic.cs
- MetadataArtifactLoaderCompositeResource.cs
- ColorDialog.cs
- WrapPanel.cs
- XmlSerializerNamespaces.cs
- Converter.cs
- DateTimeUtil.cs
- GlyphRun.cs
- CollectionChangedEventManager.cs
- QilPatternFactory.cs
- SubstitutionDesigner.cs
- WindowsGraphics2.cs
- TypedAsyncResult.cs
- SpellerInterop.cs
- ReverseQueryOperator.cs
- DockPanel.cs
- EditorAttributeInfo.cs
- ComboBoxAutomationPeer.cs
- ThicknessConverter.cs
- Collection.cs
- ChangePasswordDesigner.cs
- IdSpace.cs
- HttpModuleActionCollection.cs
- HttpApplication.cs
- DataGridViewRowConverter.cs
- DataGridViewDataConnection.cs
- AsymmetricKeyExchangeFormatter.cs
- Win32Native.cs
- RbTree.cs
- Intellisense.cs
- SessionKeyExpiredException.cs
- HwndMouseInputProvider.cs
- ScrollProviderWrapper.cs
- TableLayoutPanel.cs
- WindowClosedEventArgs.cs
- NavigationProgressEventArgs.cs
- Hash.cs
- AnnotationAuthorChangedEventArgs.cs
- IndexOutOfRangeException.cs
- GeometryGroup.cs
- Vector.cs
- EntityDataSourceEntitySetNameItem.cs
- SqlParameter.cs
- ApplicationProxyInternal.cs
- SubMenuStyleCollection.cs
- TypeNameConverter.cs
- StaticSiteMapProvider.cs
- _FtpDataStream.cs
- CodeTypeMember.cs
- _IPv4Address.cs
- ActivityXRefPropertyEditor.cs
- DataSourceView.cs
- X509ScopedServiceCertificateElementCollection.cs
- EventLogPermissionHolder.cs
- ColumnResizeUndoUnit.cs
- HttpStaticObjectsCollectionWrapper.cs
- DateTimeOffsetConverter.cs
- DataTableExtensions.cs
- ICspAsymmetricAlgorithm.cs
- SyntaxCheck.cs
- ResourceKey.cs
- DesigntimeLicenseContextSerializer.cs
- ViewSimplifier.cs
- PropertyValueChangedEvent.cs
- StringAttributeCollection.cs
- TopClause.cs
- HttpPostedFileWrapper.cs
- Int32.cs
- contentDescriptor.cs
- MultilineStringConverter.cs
- Relationship.cs