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
- BitmapEncoder.cs
- pingexception.cs
- PrePrepareMethodAttribute.cs
- HttpFileCollection.cs
- ScrollableControl.cs
- XmlSchemaComplexContentRestriction.cs
- BatchStream.cs
- DesignerVerbCollection.cs
- XmlRawWriter.cs
- ImageMetadata.cs
- SqlVisitor.cs
- ScrollProperties.cs
- MessageSmuggler.cs
- XamlGridLengthSerializer.cs
- AsynchronousChannelMergeEnumerator.cs
- SpeakCompletedEventArgs.cs
- UnsafeNativeMethods.cs
- IIS7WorkerRequest.cs
- filewebresponse.cs
- BooleanAnimationBase.cs
- TraceContext.cs
- ValidatingReaderNodeData.cs
- ViewGenerator.cs
- SqlException.cs
- InvokeProviderWrapper.cs
- DataGridViewTextBoxEditingControl.cs
- FixedDSBuilder.cs
- DomainConstraint.cs
- TabControlAutomationPeer.cs
- PartitionResolver.cs
- InlineObject.cs
- PathFigure.cs
- ProjectionRewriter.cs
- XmlSchemaDatatype.cs
- SqlDataSourceCache.cs
- Evidence.cs
- CaseExpr.cs
- CacheForPrimitiveTypes.cs
- SimpleHandlerBuildProvider.cs
- MimeXmlImporter.cs
- IndexedEnumerable.cs
- SoapEnumAttribute.cs
- HitTestResult.cs
- FormsAuthenticationCredentials.cs
- XpsFixedPageReaderWriter.cs
- XsltException.cs
- DeviceSpecificChoice.cs
- TabletCollection.cs
- WrappedDispatcherException.cs
- StringInfo.cs
- ProviderSettings.cs
- ChannelManager.cs
- DependencyObjectType.cs
- MaskDescriptors.cs
- ContentWrapperAttribute.cs
- SafeIUnknown.cs
- SchemaMerger.cs
- WebSysDefaultValueAttribute.cs
- GridProviderWrapper.cs
- sqlinternaltransaction.cs
- DataIdProcessor.cs
- VirtualizingPanel.cs
- ColorContextHelper.cs
- FactoryId.cs
- SimplePropertyEntry.cs
- WebPartTransformerCollection.cs
- SecUtil.cs
- SqlDataSourceFilteringEventArgs.cs
- KnownTypeDataContractResolver.cs
- XsltOutput.cs
- CfgArc.cs
- SmiRequestExecutor.cs
- Section.cs
- VisualTreeHelper.cs
- HttpListenerPrefixCollection.cs
- FrameworkElement.cs
- RawUIStateInputReport.cs
- parserscommon.cs
- ClientType.cs
- formatter.cs
- HostingEnvironment.cs
- LambdaCompiler.Unary.cs
- RemotingException.cs
- PropertyEmitterBase.cs
- AssemblyInfo.cs
- RestHandlerFactory.cs
- RepeatButton.cs
- ResumeStoryboard.cs
- ConstraintCollection.cs
- TemplateKeyConverter.cs
- SystemIPInterfaceStatistics.cs
- DNS.cs
- WebServiceResponse.cs
- MenuItem.cs
- MimeXmlReflector.cs
- SineEase.cs
- TdsParser.cs
- IndexedWhereQueryOperator.cs
- Peer.cs
- UserControlParser.cs