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
- DataBoundControlHelper.cs
- TraceShell.cs
- NestedContainer.cs
- Line.cs
- PhysicalFontFamily.cs
- SqlBuffer.cs
- TimersDescriptionAttribute.cs
- ViewStateException.cs
- ProcessHostServerConfig.cs
- TableLayoutColumnStyleCollection.cs
- EmbeddedMailObject.cs
- Label.cs
- SharedPersonalizationStateInfo.cs
- Config.cs
- SafeRightsManagementEnvironmentHandle.cs
- ArglessEventHandlerProxy.cs
- PackWebRequestFactory.cs
- _UriTypeConverter.cs
- Utils.cs
- XmlILIndex.cs
- LinqDataSourceHelper.cs
- PrimitiveDataContract.cs
- XmlDocumentType.cs
- RoutedEventArgs.cs
- input.cs
- AspCompat.cs
- NetTcpSection.cs
- TreeViewAutomationPeer.cs
- CryptoApi.cs
- XmlNodeList.cs
- CopyNamespacesAction.cs
- DataControlCommands.cs
- SortKey.cs
- HeaderPanel.cs
- InternalTransaction.cs
- RectAnimationBase.cs
- BamlResourceDeserializer.cs
- transactioncontext.cs
- Int32CollectionConverter.cs
- ClientSettingsSection.cs
- IdentitySection.cs
- RegistrationProxy.cs
- CompositeCollectionView.cs
- XmlIlGenerator.cs
- ConfigXmlText.cs
- ItemsChangedEventArgs.cs
- Queue.cs
- BooleanAnimationBase.cs
- UnsafeNativeMethodsCLR.cs
- VerbConverter.cs
- InfiniteTimeSpanConverter.cs
- SettingsPropertyIsReadOnlyException.cs
- Configuration.cs
- ToolStripStatusLabel.cs
- ConnectionPoolManager.cs
- cookiecontainer.cs
- FlowDecision.cs
- DataSetMappper.cs
- IntSecurity.cs
- PropertyRecord.cs
- CodeTypeReferenceExpression.cs
- ButtonChrome.cs
- activationcontext.cs
- OptimisticConcurrencyException.cs
- RuntimeEnvironment.cs
- TypeSource.cs
- SmtpSection.cs
- Types.cs
- BuilderPropertyEntry.cs
- FormsAuthenticationTicket.cs
- ActivityLocationReferenceEnvironment.cs
- Directory.cs
- Variant.cs
- Help.cs
- DateTimeHelper.cs
- NumberFunctions.cs
- PackageController.cs
- DetailsViewInsertEventArgs.cs
- QueryPageSettingsEventArgs.cs
- WindowsListViewScroll.cs
- TextRangeEditTables.cs
- MatrixAnimationUsingPath.cs
- XmlSchemaSimpleTypeRestriction.cs
- _ListenerRequestStream.cs
- EndpointNotFoundException.cs
- Timer.cs
- ParseChildrenAsPropertiesAttribute.cs
- GeneralTransform.cs
- PassportAuthentication.cs
- XmlDictionaryWriter.cs
- LingerOption.cs
- ErrorsHelper.cs
- Operators.cs
- InertiaRotationBehavior.cs
- NonDualMessageSecurityOverHttpElement.cs
- PropertyCondition.cs
- ReadingWritingEntityEventArgs.cs
- BitmapEffectrendercontext.cs
- _DisconnectOverlappedAsyncResult.cs
- ToolboxDataAttribute.cs