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
- BoundField.cs
- DataGridViewDataErrorEventArgs.cs
- SelectionProcessor.cs
- HttpListenerRequest.cs
- SignatureToken.cs
- Point3DKeyFrameCollection.cs
- SqlClientWrapperSmiStream.cs
- GlyphTypeface.cs
- CultureInfoConverter.cs
- DataSet.cs
- StringCollectionEditor.cs
- EncoderExceptionFallback.cs
- MessageLogger.cs
- DataGrid.cs
- CompositeActivityDesigner.cs
- HtmlTableCellCollection.cs
- basecomparevalidator.cs
- SqlNodeAnnotation.cs
- externdll.cs
- TransactionManager.cs
- ProxyAttribute.cs
- CodeExporter.cs
- CellPartitioner.cs
- DataAdapter.cs
- coordinatorfactory.cs
- ManagementClass.cs
- DefaultValueTypeConverter.cs
- HtmlInputRadioButton.cs
- RightsManagementEncryptedStream.cs
- SignatureHelper.cs
- DBAsyncResult.cs
- InternalConfigSettingsFactory.cs
- BlockUIContainer.cs
- MultiBinding.cs
- DataGridItemCollection.cs
- EntityDataSourceQueryBuilder.cs
- COM2PropertyPageUITypeConverter.cs
- ACE.cs
- IgnorePropertiesAttribute.cs
- SemaphoreSecurity.cs
- SelectionItemPattern.cs
- DataColumnMapping.cs
- DataGridViewRowsAddedEventArgs.cs
- PartialArray.cs
- HttpBufferlessInputStream.cs
- BaseInfoTable.cs
- MeasurementDCInfo.cs
- BooleanStorage.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- RestHandlerFactory.cs
- DirectionalLight.cs
- SwitchElementsCollection.cs
- MimeObjectFactory.cs
- DesignerForm.cs
- ColorAnimationBase.cs
- XsltFunctions.cs
- Table.cs
- TdsRecordBufferSetter.cs
- _HTTPDateParse.cs
- EventLogPermissionHolder.cs
- RegularExpressionValidator.cs
- StrictAndMessageFilter.cs
- Italic.cs
- AddressingVersion.cs
- XamlTreeBuilderBamlRecordWriter.cs
- FaultPropagationQuery.cs
- GridViewUpdateEventArgs.cs
- M3DUtil.cs
- ErrorHandler.cs
- Int32RectValueSerializer.cs
- XmlSchemaCompilationSettings.cs
- Matrix3DValueSerializer.cs
- XmlSchemaExternal.cs
- _SslSessionsCache.cs
- DispatcherFrame.cs
- Partitioner.cs
- TextReader.cs
- PropertyMapper.cs
- XmlWriterSettings.cs
- WizardStepCollectionEditor.cs
- log.cs
- FileInfo.cs
- SqlInternalConnectionTds.cs
- PageSettings.cs
- TableDetailsCollection.cs
- DemultiplexingClientMessageFormatter.cs
- DesignerMetadata.cs
- NotCondition.cs
- DbModificationCommandTree.cs
- DocumentPageHost.cs
- VirtualizingStackPanel.cs
- _UncName.cs
- XmlWriterTraceListener.cs
- WmiPutTraceRecord.cs
- StrokeRenderer.cs
- HostingPreferredMapPath.cs
- EntityDataSourceReferenceGroup.cs
- FolderBrowserDialogDesigner.cs
- TextClipboardData.cs
- SoapFault.cs