PrefixContainer Class

This is a container for prefix values. It normalizes all the values into dotted-form and then stores them in a sorted array. All queries for prefixes are also normalized to dotted-form, and searches for ContainsPrefix are done with a binary search.

Namespace
Microsoft.AspNetCore.Mvc.Internal
Assemblies
  • Microsoft.AspNetCore.Mvc.Core

Syntax

public class PrefixContainer
class Microsoft.AspNetCore.Mvc.Internal.PrefixContainer

Constructors

PrefixContainer(System.Collections.Generic.ICollection<System.String>)
public PrefixContainer(ICollection<string> values)

Methods

ContainsPrefix(System.String)
Return type:System.Boolean
public bool ContainsPrefix(string prefix)
GetKeysFromPrefix(System.String)
Return type:System.Collections.Generic.IDictionary<System.String>
public IDictionary<string, string> GetKeysFromPrefix(string prefix)