Wycademy/src/Wycademy/Commands/Services/WeaponInfoService.cs
/// <summary>
/// Search for MH4U weapons matching a given search term.
/// </summary>
/// <param name="searchTerm">The search term to use.</param>
/// <returns>All MH4U weapons that match the given search term.</returns>
Search for MH4U weapons matching a given search term.
Search for MH4U weapons matching a given search term .
public IEnumerable<FourWeaponInfo> SearchFour(string searchTerm)
        {
            var pairs = _fourWeapons.Where(p => p.Value.Name.ToLower().Contains(searchTerm.ToLower()));
            return pairs.Select(p => p.Value).ToList();
        }
public IEnumerable < FourWeaponInfo > SearchFour ( string searchTerm ) { var pairs = _fourWeapons . Where ( p => p . Value . Name . ToLower ( ) . Contains ( searchTerm . ToLower ( ) ) ) ; return pairs . Select ( p => p . Value ) . ToList ( ) ; }
Search for MH4U weapons matching a given search term.
Search for MH4U weapons matching a given search term .
All MH4U weapons that match the given search term.
All MH4U weapons that match the given search term .
searchTerm
string
The search term to use.
The search term to use .