mergedServices.QueryBucket.ContainsTokenWithSameIdentifier C# (CSharp) Method

ContainsTokenWithSameIdentifier() public method

Checks if there is a token already exists in the consumed tokens list that has same identifier
public ContainsTokenWithSameIdentifier ( LexiconToken token ) : bool
token LexiconToken the token to compare to
return bool
        public bool ContainsTokenWithSameIdentifier(LexiconToken token)
        {
            //todo:
            //foreach (LexiconToken item in tokens)
            //{
            //    if (token.identifier.Equals(item.identifier))
            //        return true;
            //}
            //return false;

            return false;
        }