C# Class NuGet.Indexing.NuGetAcronymExpansionProvider

This class loads a file that contains the acronyms we want to expand. This file could look like: { "ef": [ "ef", "entity framework" ] } The above file expands "ef" into both "ef" and "entity framework". The acronym itself must be repeated in the list of expansions. This approach allows us to "replace" acronyms as well. For example, imagine we want to treat "mvc5" as just "mvc". the expansion could look like: { "mvc5": [ "mvc" ] }
Inheritance: IAcronymExpansionProvider
Afficher le fichier Open project: NuGet/NuGet.Services.Metadata

Méthodes publiques

Свойство Type Description
Instance IAcronymExpansionProvider

Méthodes publiques

Méthode Description
Expand ( string acronym ) : IEnumerable
GetKnownAcronyms ( ) : IEnumerable

Private Methods

Méthode Description
NuGetAcronymExpansionProvider ( ) : System.Collections.Generic

Method Details

Expand() public méthode

public Expand ( string acronym ) : IEnumerable
acronym string
Résultat IEnumerable

GetKnownAcronyms() public méthode

public GetKnownAcronyms ( ) : IEnumerable
Résultat IEnumerable

Property Details

Instance public_oe static_oe property

public static IAcronymExpansionProvider Instance
Résultat IAcronymExpansionProvider