Code:
/ 4.0 / 4.0 / 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. 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(IList subsegments) { 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
- MultiAsyncResult.cs
- ManifestBasedResourceGroveler.cs
- WorkflowExecutor.cs
- QilPatternFactory.cs
- PtsHost.cs
- Int32Collection.cs
- DecoderNLS.cs
- InputBinder.cs
- ListViewSelectEventArgs.cs
- Base64Stream.cs
- Util.cs
- DataKeyPropertyAttribute.cs
- ParameterToken.cs
- __ConsoleStream.cs
- ExtendedPropertyCollection.cs
- LingerOption.cs
- HtmlWindow.cs
- PropertyConverter.cs
- AppDomainUnloadedException.cs
- DataTableReaderListener.cs
- PasswordBoxAutomationPeer.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- TextDecorationLocationValidation.cs
- MatrixTransform.cs
- ApplicationFileParser.cs
- PseudoWebRequest.cs
- VisualCollection.cs
- PTManager.cs
- DataGridColumnsPage.cs
- XamlPathDataSerializer.cs
- StateItem.cs
- ContainerVisual.cs
- WebPartTransformerAttribute.cs
- StringSource.cs
- InvalidAsynchronousStateException.cs
- OleDbCommand.cs
- RtfFormatStack.cs
- EncoderFallback.cs
- CheckBoxRenderer.cs
- BitmapData.cs
- DetailsViewUpdateEventArgs.cs
- HelpKeywordAttribute.cs
- DesigntimeLicenseContextSerializer.cs
- GenericRootAutomationPeer.cs
- X509CertificateCollection.cs
- TemplateContentLoader.cs
- path.cs
- PartialCachingAttribute.cs
- _TLSstream.cs
- DispatchWrapper.cs
- CompositeScriptReferenceEventArgs.cs
- ObjectHandle.cs
- MethodToken.cs
- RenderingEventArgs.cs
- CheckBoxDesigner.cs
- URL.cs
- Misc.cs
- coordinatorscratchpad.cs
- FamilyMap.cs
- bidPrivateBase.cs
- ConversionValidationRule.cs
- TagPrefixCollection.cs
- WindowPattern.cs
- CodeArrayIndexerExpression.cs
- SqlCommand.cs
- JournalEntry.cs
- DBCommand.cs
- ServiceObjectContainer.cs
- CustomWebEventKey.cs
- EventSchemaTraceListener.cs
- EnumValidator.cs
- TableRowCollection.cs
- WorkflowService.cs
- FamilyMapCollection.cs
- XmlSchemaSimpleContent.cs
- MailHeaderInfo.cs
- KeyedCollection.cs
- SecurityTokenInclusionMode.cs
- DiscoveryViaBehavior.cs
- ImageAnimator.cs
- CodeTypeOfExpression.cs
- ProcessStartInfo.cs
- CharacterMetrics.cs
- PolyBezierSegment.cs
- SuppressMessageAttribute.cs
- GroupItemAutomationPeer.cs
- Renderer.cs
- XmlSiteMapProvider.cs
- ShutDownListener.cs
- PropertyDescriptorCollection.cs
- BinaryNode.cs
- ReaderWriterLockWrapper.cs
- XPathBuilder.cs
- BitmapEncoder.cs
- ProtocolsConfigurationEntry.cs
- AsyncPostBackErrorEventArgs.cs
- SqlConnectionFactory.cs
- ListViewItemSelectionChangedEvent.cs
- ApplicationTrust.cs
- WebUtil.cs