mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
Adding reference source for System.Data System.Data.DataSetExtensions System.Data.Entity System.Data.Entity.Design System.Data.Linq System.Data.SqlXml System.ServiceModel System.ServiceModel.Activation System.ServiceModel.Activities System.ServiceModel.Channels System.ServiceModel.Discovery System.ServiceModel.Internals System.ServiceModel.Routing System.ServiceModel.WasHosting System.ServiceModel.Web System.Web System.Web.ApplicationServices System.Web.DynamicData System.Web.Entity System.Web.Entity.Design System.Web.Extensions System.Web.Mobile System.Web.Routing System.Web.Services System.Xml System.Xml.Linq
38 lines
1021 B
C#
38 lines
1021 B
C#
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
|
|
}
|
|
}
|