C# Class Bamboo.Prevalence.Indexing.FullText.Token

Afficher le fichier Open project: bamboo/Bamboo.Prevalence Class Usage Examples

Méthodes publiques

Méthode Description
Equals ( object other ) : bool

Tokens are equal if both properties, Value and Position, are considered equal.

GetHashCode ( ) : int

Calculates a hashcode based on the properties Value and Position.

ToString ( ) : string

Builds a more human friendly representation of the token.

Token ( string value, int position ) : System

Creates a new token.

Method Details

Equals() public méthode

Tokens are equal if both properties, Value and Position, are considered equal.
public Equals ( object other ) : bool
other object object to test equality for
Résultat bool

GetHashCode() public méthode

Calculates a hashcode based on the properties Value and Position.
public GetHashCode ( ) : int
Résultat int

ToString() public méthode

Builds a more human friendly representation of the token.
public ToString ( ) : string
Résultat string

Token() public méthode

Creates a new token.
public Token ( string value, int position ) : System
value string token image
position int absolute position of the /// image in the original text
Résultat System