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
- ThreadLocal.cs
- ColumnMapCopier.cs
- SafeRightsManagementQueryHandle.cs
- ConfigurationManagerInternalFactory.cs
- ScrollBar.cs
- WebBrowsableAttribute.cs
- ConnectionStringsExpressionBuilder.cs
- GrammarBuilderDictation.cs
- EditorPartDesigner.cs
- _CommandStream.cs
- ApplicationSettingsBase.cs
- wpf-etw.cs
- HttpValueCollection.cs
- WMICapabilities.cs
- _FtpControlStream.cs
- HtmlTableRow.cs
- CqlIdentifiers.cs
- Stack.cs
- XPathNavigator.cs
- DefaultPropertyAttribute.cs
- LogEntrySerializer.cs
- TypeSystem.cs
- DataGridAutomationPeer.cs
- ForceCopyBuildProvider.cs
- TogglePattern.cs
- SBCSCodePageEncoding.cs
- XmlMtomWriter.cs
- SmiMetaData.cs
- PartialArray.cs
- VisualStateManager.cs
- SlipBehavior.cs
- RawMouseInputReport.cs
- HandleRef.cs
- HtmlTableRowCollection.cs
- BooleanStorage.cs
- GuidelineCollection.cs
- XamlToRtfParser.cs
- PassportAuthenticationModule.cs
- XmlChoiceIdentifierAttribute.cs
- UnsafeNativeMethodsMilCoreApi.cs
- Constraint.cs
- PeerNodeTraceRecord.cs
- Calendar.cs
- Unit.cs
- MemberMaps.cs
- ContainerParagraph.cs
- GroupBoxRenderer.cs
- IdentitySection.cs
- TableCellAutomationPeer.cs
- GridViewCancelEditEventArgs.cs
- ReflectionHelper.cs
- Vector.cs
- Int64.cs
- NavigationWindow.cs
- AssemblyCacheEntry.cs
- PenCursorManager.cs
- IndexedString.cs
- DataKeyArray.cs
- MenuItemCollection.cs
- TypeInitializationException.cs
- CorrelationManager.cs
- SiteMapDataSource.cs
- XmlUtil.cs
- InstanceKeyCompleteException.cs
- KeyedCollection.cs
- XPathNodeInfoAtom.cs
- FontFamilyConverter.cs
- SiteMapNodeItemEventArgs.cs
- DataBinding.cs
- TableItemPattern.cs
- PathGeometry.cs
- XslCompiledTransform.cs
- Pair.cs
- Stroke.cs
- EtwTrace.cs
- ChannelBase.cs
- SqlOuterApplyReducer.cs
- SerializationSectionGroup.cs
- XPathExpr.cs
- DocumentSequenceHighlightLayer.cs
- StructuredTypeInfo.cs
- ProcessModelSection.cs
- MasterPageCodeDomTreeGenerator.cs
- IndependentlyAnimatedPropertyMetadata.cs
- NamedPipeAppDomainProtocolHandler.cs
- XmlFormatWriterGenerator.cs
- QilFunction.cs
- EasingFunctionBase.cs
- MailBnfHelper.cs
- FloatAverageAggregationOperator.cs
- CalloutQueueItem.cs
- SqlServer2KCompatibilityAnnotation.cs
- CredentialCache.cs
- GlobalizationAssembly.cs
- ResourceCategoryAttribute.cs
- AuthenticationConfig.cs
- ObjectDataProvider.cs
- SQLBinaryStorage.cs
- PtsHost.cs
- MultiAsyncResult.cs