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
Mostra file Open project: NuGet/NuGet.Services.Metadata

Public Properties

Property Type Description
Instance IAcronymExpansionProvider

Public Methods

Method Description
Expand ( string acronym ) : IEnumerable
GetKnownAcronyms ( ) : IEnumerable

Private Methods

Method Description
NuGetAcronymExpansionProvider ( ) : System.Collections.Generic

Method Details

Expand() public method

public Expand ( string acronym ) : IEnumerable
acronym string
return IEnumerable

GetKnownAcronyms() public method

public GetKnownAcronyms ( ) : IEnumerable
return IEnumerable

Property Details

Instance public_oe static_oe property

public static IAcronymExpansionProvider Instance
return IAcronymExpansionProvider