Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SQLDateTime.cs
- DbParameterHelper.cs
- StrokeDescriptor.cs
- ObjectIDGenerator.cs
- CodeTypeReference.cs
- EntityTemplateUserControl.cs
- ErrorTableItemStyle.cs
- CodeDOMProvider.cs
- ObfuscateAssemblyAttribute.cs
- HandlerElement.cs
- XmlSchemaChoice.cs
- UIPermission.cs
- SchemaObjectWriter.cs
- Converter.cs
- HandledEventArgs.cs
- CodeSubDirectory.cs
- TreeIterator.cs
- ZipIOExtraFieldZip64Element.cs
- DependencyPropertyHelper.cs
- TextServicesDisplayAttribute.cs
- ScriptingSectionGroup.cs
- ReadOnlyDictionary.cs
- ToolStripItemGlyph.cs
- CommonObjectSecurity.cs
- Exceptions.cs
- MailMessageEventArgs.cs
- PasswordPropertyTextAttribute.cs
- RectangleF.cs
- LogicalMethodInfo.cs
- NativeActivityMetadata.cs
- Stackframe.cs
- UniqueCodeIdentifierScope.cs
- RuntimeWrappedException.cs
- ScrollChrome.cs
- SlipBehavior.cs
- PathFigureCollectionValueSerializer.cs
- IpcClientManager.cs
- PersonalizationProviderHelper.cs
- BindingMemberInfo.cs
- PickDesigner.xaml.cs
- ChannelParameterCollection.cs
- FormatConvertedBitmap.cs
- FlagsAttribute.cs
- RegexRunner.cs
- FormClosedEvent.cs
- ConnectionManagementElementCollection.cs
- EntityTypeEmitter.cs
- Exception.cs
- ResourceReferenceKeyNotFoundException.cs
- Ports.cs
- MulticastOption.cs
- UInt32Storage.cs
- DataBindingCollection.cs
- OLEDB_Util.cs
- SectionInformation.cs
- ADMembershipProvider.cs
- CloudCollection.cs
- UInt16Storage.cs
- PostBackOptions.cs
- EntityViewContainer.cs
- FlowDocumentReader.cs
- HideDisabledControlAdapter.cs
- XmlException.cs
- DynamicValueConverter.cs
- ClientSettings.cs
- SqlXmlStorage.cs
- SiteMapNodeItem.cs
- WorkflowPageSetupDialog.cs
- DataError.cs
- NullableLongMinMaxAggregationOperator.cs
- COSERVERINFO.cs
- Metadata.cs
- OptimizedTemplateContent.cs
- BinHexDecoder.cs
- Size3D.cs
- Assembly.cs
- JavaScriptSerializer.cs
- GridViewRowCollection.cs
- DataGridViewButtonCell.cs
- SqlOuterApplyReducer.cs
- BindingWorker.cs
- XhtmlBasicPanelAdapter.cs
- Win32SafeHandles.cs
- FunctionNode.cs
- TemplateModeChangedEventArgs.cs
- InputLanguageCollection.cs
- RoleGroup.cs
- Menu.cs
- LogFlushAsyncResult.cs
- RegisteredArrayDeclaration.cs
- ProxyWebPart.cs
- Int32RectValueSerializer.cs
- NavigationPropertyAccessor.cs
- XmlBoundElement.cs
- IssuanceTokenProviderState.cs
- StackBuilderSink.cs
- DependencyPropertyKind.cs
- ContractUtils.cs
- FontInfo.cs
- ServiceChannel.cs