I am very new c# , the code i wrote constantly sends the data to console i.e console.writeline. the class is called generate_data
i created another GUI class that contains a textbox.
i want to redirect all the output of generate_data to the textbox.
everytime generate_data class produces output it should be send to the textbox.