fCraft.FlatfilePlayerDBProvider.FindOneByPartialName C# (CSharp) Method

FindOneByPartialName() public method

Searches for player names starting with namePart, returning just one or none of the matches.
public FindOneByPartialName ( string partialName, PlayerInfo &result ) : bool
partialName string Partial or full player name.
result PlayerInfo PlayerInfo to output (will be set to null if no single match was found).
return bool
        public bool FindOneByPartialName( string partialName, out PlayerInfo result ) {
            if( partialName == null ) throw new ArgumentNullException( "partialName" );
            lock( trie.SyncRoot ) {
                return trie.GetOneMatch( partialName, out result );
            }
        }