private BsonWriterState GetNextState() { if (_context.ContextType == ContextType.Array) { return BsonWriterState.Value; } else { return BsonWriterState.Name; } }