Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Routing / ParameterSubsegment.cs / 1305376 / ParameterSubsegment.cs
namespace System.Web.Routing { // Represents a parameter subsegment of a ContentPathSegment internal sealed class ParameterSubsegment : PathSubsegment { public ParameterSubsegment(string parameterName) { if (parameterName.StartsWith("*", StringComparison.Ordinal)) { ParameterName = parameterName.Substring(1); IsCatchAll = true; } else { ParameterName = parameterName; } } public bool IsCatchAll { get; private set; } public string ParameterName { get; private set; } #if ROUTE_DEBUGGING public override string LiteralText { get { return "{" + (IsCatchAll ? "*" : String.Empty) + ParameterName + "}"; } } public override string ToString() { return "{" + (IsCatchAll ? "*" : String.Empty) + ParameterName + "}"; } #endif } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. namespace System.Web.Routing { // Represents a parameter subsegment of a ContentPathSegment internal sealed class ParameterSubsegment : PathSubsegment { public ParameterSubsegment(string parameterName) { if (parameterName.StartsWith("*", StringComparison.Ordinal)) { ParameterName = parameterName.Substring(1); IsCatchAll = true; } else { ParameterName = parameterName; } } public bool IsCatchAll { get; private set; } public string ParameterName { get; private set; } #if ROUTE_DEBUGGING public override string LiteralText { get { return "{" + (IsCatchAll ? "*" : String.Empty) + ParameterName + "}"; } } public override string ToString() { return "{" + (IsCatchAll ? "*" : String.Empty) + ParameterName + "}"; } #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
- WebContext.cs
- TextServicesContext.cs
- EntityDataSourceDataSelectionPanel.cs
- LinqDataSourceEditData.cs
- PrinterResolution.cs
- XmlSchemaSequence.cs
- HyperLinkField.cs
- QueryLifecycle.cs
- RequestCachePolicyConverter.cs
- WsatAdminException.cs
- InheritanceRules.cs
- DataServiceException.cs
- Matrix.cs
- BufferedStream.cs
- RootBuilder.cs
- FileUpload.cs
- PeerPresenceInfo.cs
- XmlSchemaRedefine.cs
- CounterCreationData.cs
- Journaling.cs
- ModifierKeysConverter.cs
- HttpCacheVaryByContentEncodings.cs
- WorkflowElementDialog.cs
- TableProvider.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- RenderDataDrawingContext.cs
- BulletedList.cs
- CultureNotFoundException.cs
- ParseElementCollection.cs
- DoubleCollectionValueSerializer.cs
- BezierSegment.cs
- hresults.cs
- NamespaceListProperty.cs
- RuleSettingsCollection.cs
- FixedSOMPageConstructor.cs
- DefaultWorkflowLoaderService.cs
- Model3D.cs
- ScalarType.cs
- OptimizedTemplateContent.cs
- DataGridViewLinkColumn.cs
- TagPrefixCollection.cs
- WebBrowserUriTypeConverter.cs
- XmlNodeComparer.cs
- StrongNamePublicKeyBlob.cs
- Quaternion.cs
- ScriptManager.cs
- UniqueConstraint.cs
- XmlExtensionFunction.cs
- Set.cs
- TransformPattern.cs
- GeneralTransform3DGroup.cs
- sqlpipe.cs
- ToolStripLabel.cs
- TabletCollection.cs
- CustomGrammar.cs
- RayHitTestParameters.cs
- codemethodreferenceexpression.cs
- BrowserCapabilitiesFactoryBase.cs
- ToolStripDropDownMenu.cs
- SqlUserDefinedTypeAttribute.cs
- ThemeDirectoryCompiler.cs
- PropertyPushdownHelper.cs
- RIPEMD160.cs
- HexParser.cs
- KeyPressEvent.cs
- XPathDocument.cs
- DSACryptoServiceProvider.cs
- PropertyInformation.cs
- OdbcInfoMessageEvent.cs
- QueryOperationResponseOfT.cs
- GridErrorDlg.cs
- LongValidator.cs
- ImmutableObjectAttribute.cs
- SemanticResultValue.cs
- WorkflowControlClient.cs
- ToolStripGrip.cs
- TreeNodeSelectionProcessor.cs
- TransformProviderWrapper.cs
- SQLDateTime.cs
- OdbcConnectionPoolProviderInfo.cs
- odbcmetadatacollectionnames.cs
- DefaultValueConverter.cs
- DiffuseMaterial.cs
- ComplexPropertyEntry.cs
- AmbientLight.cs
- XmlSchemaObjectCollection.cs
- ExceptionDetail.cs
- CqlGenerator.cs
- __TransparentProxy.cs
- ToolStripOverflow.cs
- XPathMultyIterator.cs
- RootBuilder.cs
- RectAnimation.cs
- HttpCachePolicyBase.cs
- UrlMapping.cs
- HtmlForm.cs
- Oid.cs
- SmtpReplyReader.cs
- CodeDirectoryCompiler.cs
- XmlBinaryWriter.cs