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
- DataStreamFromComStream.cs
- MessageBox.cs
- TemplateEditingService.cs
- DbParameterHelper.cs
- StaticTextPointer.cs
- SchemaInfo.cs
- WaitForChangedResult.cs
- ClientCredentialsElement.cs
- InputEventArgs.cs
- SEHException.cs
- ControllableStoryboardAction.cs
- NetworkStream.cs
- DataServiceHostFactory.cs
- MasterPageParser.cs
- GeometryHitTestResult.cs
- KoreanLunisolarCalendar.cs
- DbSource.cs
- TripleDESCryptoServiceProvider.cs
- MetaType.cs
- CellParaClient.cs
- MSG.cs
- DbParameterCollectionHelper.cs
- TextChange.cs
- ParseChildrenAsPropertiesAttribute.cs
- KeyGesture.cs
- BasePattern.cs
- TextFormatterHost.cs
- ExpressionBindings.cs
- Events.cs
- BitmapEffectInput.cs
- BlockCollection.cs
- ClientEventManager.cs
- DataColumnChangeEvent.cs
- ImageFormat.cs
- SoapHeaders.cs
- EmptyStringExpandableObjectConverter.cs
- JoinTreeNode.cs
- SecurityKeyUsage.cs
- IgnoreDeviceFilterElementCollection.cs
- WebPartChrome.cs
- SafeFindHandle.cs
- ChameleonKey.cs
- TreeNodeConverter.cs
- StylusPointProperty.cs
- CompositeCollectionView.cs
- UnicodeEncoding.cs
- TimeSpan.cs
- StickyNoteAnnotations.cs
- ConfigXmlCDataSection.cs
- CollectionViewGroupInternal.cs
- BindToObject.cs
- XmlComplianceUtil.cs
- ThreadNeutralSemaphore.cs
- CompiledXpathExpr.cs
- HtmlFormParameterReader.cs
- PlainXmlSerializer.cs
- XamlFilter.cs
- _LoggingObject.cs
- Attributes.cs
- TemplateControlParser.cs
- MutexSecurity.cs
- CheckedPointers.cs
- CryptoConfig.cs
- OrthographicCamera.cs
- DirectoryNotFoundException.cs
- EncryptedKeyIdentifierClause.cs
- GraphicsState.cs
- XmlReturnReader.cs
- login.cs
- RenderCapability.cs
- FileSystemWatcher.cs
- VirtualizingPanel.cs
- SignedXml.cs
- DataListItem.cs
- OpCopier.cs
- Compiler.cs
- Compiler.cs
- HtmlMeta.cs
- OleDbRowUpdatingEvent.cs
- UInt64Converter.cs
- TableLayoutCellPaintEventArgs.cs
- TypeContext.cs
- FormattedText.cs
- SrgsElementFactoryCompiler.cs
- LongValidatorAttribute.cs
- IRCollection.cs
- ApplicationBuildProvider.cs
- WebPartEditorOkVerb.cs
- UshortList2.cs
- QueueSurrogate.cs
- LayoutTableCell.cs
- CollectionViewGroupRoot.cs
- Util.cs
- CommandEventArgs.cs
- OutOfMemoryException.cs
- StrongNameUtility.cs
- FreeIndexList.cs
- Rectangle.cs
- DataRowChangeEvent.cs
- WinInetCache.cs