/// <summary> /// Adds to SST if required. /// </summary> private void AddToSSTIfRequired() { if (book != null) { int index = book.AddSSTString(str); record.SSTIndex = (index); //The act of Adding the string to the SST record may have meant that //a extsing string was returned for the index, so update our local version str = book.GetSSTString(index); } }