private void ThrowIfSealed() { if (IsReadOnly) { throw SpecFailure.Sealed(); } }
private void WritePreamble() { if (IsReadOnly) { throw SpecFailure.Sealed(); } }