public void AddStringIndex(int newValue, StringIndexType newSIType) { StringIndexState siState; if (m_cellStringIndices.TryGetValue(newValue, out siState)) { if (siState.Type != newSIType) { siState.Type |= newSIType; siState.RefreshTreatAs = true; m_cellStringIndices[newValue] = siState; } } else { siState = new StringIndexState(newSIType); m_cellStringIndices.Add(newValue, siState); } }
public bool IsRedactedCellStringIndex(int stringIndex) { StringIndexState siState = new StringIndexState(); if (m_cellStringIndices.TryGetValue(stringIndex, out siState)) { if (siState.TreatAsType == StringIndexType.Redacted) { return true; } } return false; }