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
- TrustLevelCollection.cs
- Latin1Encoding.cs
- ConnectionInterfaceCollection.cs
- OdbcEnvironment.cs
- Tag.cs
- DBSqlParser.cs
- TypefaceCollection.cs
- HostedImpersonationContext.cs
- DropDownList.cs
- PathParser.cs
- CanExecuteRoutedEventArgs.cs
- AuditLog.cs
- ImageBrush.cs
- CodeGen.cs
- StrokeCollectionDefaultValueFactory.cs
- MultiPropertyDescriptorGridEntry.cs
- Filter.cs
- NativeMethods.cs
- WebPartConnectionsCancelEventArgs.cs
- figurelengthconverter.cs
- UrlMappingCollection.cs
- NullableBoolConverter.cs
- PrintDialog.cs
- EntityClassGenerator.cs
- CommonObjectSecurity.cs
- WorkflowDispatchContext.cs
- ShellProvider.cs
- PathFigureCollectionConverter.cs
- ApplicationGesture.cs
- Attributes.cs
- TextPointerBase.cs
- ResourcePool.cs
- Oci.cs
- StringAnimationUsingKeyFrames.cs
- SoapSchemaImporter.cs
- ComponentManagerBroker.cs
- PersonalizableTypeEntry.cs
- arabicshape.cs
- ProvidersHelper.cs
- LayoutTable.cs
- InkSerializer.cs
- PromptEventArgs.cs
- TreeNodeConverter.cs
- ObjectFullSpanRewriter.cs
- ExtentKey.cs
- PageContentCollection.cs
- GridItemPattern.cs
- XhtmlTextWriter.cs
- TreeViewCancelEvent.cs
- BufferedStream2.cs
- ControlBuilderAttribute.cs
- Select.cs
- DictionaryKeyPropertyAttribute.cs
- FloatUtil.cs
- Console.cs
- ButtonColumn.cs
- ChannelDispatcherBase.cs
- ThreadStaticAttribute.cs
- FamilyMap.cs
- HttpListenerPrefixCollection.cs
- SqlConnectionFactory.cs
- StrokeCollection.cs
- KnownTypesProvider.cs
- ZipPackage.cs
- WindowsFormsHelpers.cs
- DeadCharTextComposition.cs
- AxWrapperGen.cs
- ImageMapEventArgs.cs
- Point3DKeyFrameCollection.cs
- BaseComponentEditor.cs
- CqlQuery.cs
- TemplateControl.cs
- Point4DConverter.cs
- X509SecurityTokenAuthenticator.cs
- SecurityPermission.cs
- Formatter.cs
- TokenBasedSetEnumerator.cs
- ConnectionProviderAttribute.cs
- ObjectAssociationEndMapping.cs
- ElementAction.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- ChannelDispatcher.cs
- CodeDesigner.cs
- Odbc32.cs
- SizeAnimationBase.cs
- CursorInteropHelper.cs
- CroppedBitmap.cs
- Subtract.cs
- HttpPostLocalhostServerProtocol.cs
- AccessKeyManager.cs
- CategoryNameCollection.cs
- SetterBaseCollection.cs
- BamlTreeMap.cs
- XdrBuilder.cs
- TypeRefElement.cs
- SkewTransform.cs
- IsolatedStorage.cs
- MultiSelectRootGridEntry.cs
- GeometryModel3D.cs
- LazyTextWriterCreator.cs