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

Datei anzeigen Open project: bamboo/Bamboo.Prevalence Class Usage Examples

Public Methods

Method 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 method

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

GetHashCode() public method

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

ToString() public method

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

Token() public method

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
return System