示例#1
0
    public bool CheckSequenceMatch()
    {
        bool match = false;

        if (reader.GetCurrentSequence().Length == referenceSequence.Count)
        {
            int matchCount = 0;
            for (int i = 0; i < referenceSequence.Count; i++)
            {
                if (referenceSequence [i] == reader.GetCurrentSequence() [i].getFormattedData())
                {
                    matchCount++;
                }
            }
            if (matchCount == referenceSequence.Count)
            {
                match = true;
            }
        }

        return(match);
    }