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
- ClientRuntimeConfig.cs
- CapacityStreamGeometryContext.cs
- WebPartChrome.cs
- WebPartUtil.cs
- ConnectionStringsExpressionEditor.cs
- WebPartManager.cs
- MenuAdapter.cs
- XmlSecureResolver.cs
- MD5CryptoServiceProvider.cs
- NativeConfigurationLoader.cs
- ClickablePoint.cs
- GenericAuthenticationEventArgs.cs
- HtmlProps.cs
- Property.cs
- RemotingConfigParser.cs
- LogicalExpressionEditor.cs
- Operator.cs
- ChildTable.cs
- XsdCachingReader.cs
- WebPartHeaderCloseVerb.cs
- DetailsViewRow.cs
- SqlParameterCollection.cs
- printdlgexmarshaler.cs
- EntityCommandExecutionException.cs
- DataRowCollection.cs
- MembershipValidatePasswordEventArgs.cs
- NativeMethodsCLR.cs
- SafeCoTaskMem.cs
- FreezableCollection.cs
- XPathDescendantIterator.cs
- WorkerRequest.cs
- SchemaElement.cs
- ManifestResourceInfo.cs
- CmsUtils.cs
- EmbeddedMailObject.cs
- DataListItemEventArgs.cs
- WebEventTraceProvider.cs
- ScriptManagerProxy.cs
- ItemType.cs
- Table.cs
- DesignerHelpers.cs
- CheckedPointers.cs
- XmlSignificantWhitespace.cs
- WindowsStatusBar.cs
- MailWebEventProvider.cs
- SmiTypedGetterSetter.cs
- SmiContextFactory.cs
- CollectionEditorDialog.cs
- Directory.cs
- WindowsListViewItem.cs
- ValueTypeFixupInfo.cs
- NavigationPropertyEmitter.cs
- Column.cs
- tabpagecollectioneditor.cs
- TickBar.cs
- ArgumentOutOfRangeException.cs
- IisTraceWebEventProvider.cs
- TraceEventCache.cs
- MonthCalendarDesigner.cs
- FixedFlowMap.cs
- TextTreeUndo.cs
- AnnotationObservableCollection.cs
- AnnotationAdorner.cs
- elementinformation.cs
- TextBlock.cs
- DocumentAutomationPeer.cs
- StylusDevice.cs
- ProxyWebPart.cs
- ObjectView.cs
- Encoder.cs
- EventOpcode.cs
- TdsParser.cs
- HighlightComponent.cs
- TextModifierScope.cs
- ScriptReferenceEventArgs.cs
- XmlSchemaCompilationSettings.cs
- XmlILStorageConverter.cs
- IndicShape.cs
- OuterGlowBitmapEffect.cs
- DetailsViewInsertedEventArgs.cs
- CatalogPartCollection.cs
- EmbeddedMailObjectCollectionEditor.cs
- AuthorizationSection.cs
- FacetValueContainer.cs
- ProcessModule.cs
- SingleBodyParameterMessageFormatter.cs
- MenuItemBindingCollection.cs
- WindowsFormsSectionHandler.cs
- WpfWebRequestHelper.cs
- SearchForVirtualItemEventArgs.cs
- CreateCardRequest.cs
- TemplateNameScope.cs
- SchemaElementDecl.cs
- DataKey.cs
- WebResourceAttribute.cs
- UnmanagedMemoryStream.cs
- DataSourceIDConverter.cs
- Bezier.cs
- AuthenticationSchemesHelper.cs
- SmtpReplyReader.cs