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
- COM2ColorConverter.cs
- PriorityQueue.cs
- XamlStream.cs
- FunctionNode.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- RootBrowserWindowAutomationPeer.cs
- PlaceHolder.cs
- CommonDialog.cs
- MsmqInputChannelBase.cs
- RetrieveVirtualItemEventArgs.cs
- SupportsEventValidationAttribute.cs
- ProfileInfo.cs
- TabletDevice.cs
- PopupEventArgs.cs
- TypeValidationEventArgs.cs
- CoTaskMemHandle.cs
- AccessDataSource.cs
- DefaultProxySection.cs
- ImageCodecInfoPrivate.cs
- XmlSchemaNotation.cs
- AssociationEndMember.cs
- AspNetHostingPermission.cs
- Configuration.cs
- XmlCharCheckingReader.cs
- XmlDocumentFragment.cs
- TrackBarRenderer.cs
- CommandField.cs
- TerminatingOperationBehavior.cs
- ButtonFlatAdapter.cs
- ScrollItemPatternIdentifiers.cs
- ControlPropertyNameConverter.cs
- DataContractJsonSerializer.cs
- DataPager.cs
- Base64Decoder.cs
- BaseTemplateBuildProvider.cs
- ModifyActivitiesPropertyDescriptor.cs
- NotifyInputEventArgs.cs
- EpmCustomContentDeSerializer.cs
- ResourceAssociationSet.cs
- __Filters.cs
- UnsafeNativeMethods.cs
- mda.cs
- HttpRequestBase.cs
- ZipIOExtraFieldElement.cs
- PropertyItem.cs
- SerialErrors.cs
- Model3D.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- BindingExpression.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- XamlVector3DCollectionSerializer.cs
- DefaultMemberAttribute.cs
- FilterQuery.cs
- EvidenceTypeDescriptor.cs
- OpenTypeLayout.cs
- Message.cs
- DataContractSerializer.cs
- TypeAccessException.cs
- EntityContainer.cs
- OutputCacheEntry.cs
- DataGridViewSelectedColumnCollection.cs
- ControlPaint.cs
- EventRouteFactory.cs
- SetterBase.cs
- QilVisitor.cs
- StateBag.cs
- WebConfigurationHostFileChange.cs
- FormsIdentity.cs
- CipherData.cs
- ParameterExpression.cs
- PersonalizableTypeEntry.cs
- MatrixStack.cs
- ProjectedSlot.cs
- SchemaElement.cs
- XmlTypeMapping.cs
- SQLResource.cs
- Delegate.cs
- DSACryptoServiceProvider.cs
- SystemWebSectionGroup.cs
- DataServiceContext.cs
- ProgressChangedEventArgs.cs
- SafeLibraryHandle.cs
- UpdateTracker.cs
- CreateUserErrorEventArgs.cs
- GroupByQueryOperator.cs
- Enlistment.cs
- WindowsRichEdit.cs
- WebServiceTypeData.cs
- FileVersion.cs
- ChannelPoolSettings.cs
- ResourcesBuildProvider.cs
- Accessors.cs
- DataGridRowDetailsEventArgs.cs
- SqlConnectionStringBuilder.cs
- CharEnumerator.cs
- ConfigurationProperty.cs
- DbReferenceCollection.cs
- LinkedResource.cs
- ToolStripMenuItem.cs
- InternalConfigHost.cs