// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. using System.Diagnostics.CodeAnalysis; namespace System.Web.Http { /// /// The class can be used to indicate properties about a route parameter (the literals and placeholders /// located within segments of a ). /// It can for example be used to indicate that a route parameter is optional. /// public sealed class RouteParameter { /// /// Optional Parameter /// [SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes", Justification = "This type is immutable.")] public static readonly RouteParameter Optional = new RouteParameter(); // singleton constructor private RouteParameter() { } /// /// Returns a that represents this instance. /// /// /// A that represents this instance. /// public override string ToString() { return String.Empty; } } }