C# – Creating an object thats named as someTextBox.Text in Windows Forms

I am a beginner and it's probably a really dumb question (i am almost certain that it's just not possible to do it). So the question is - can i create an object of a class in a way, where the object's name will be same as some string's value?



Read more here: https://stackoverflow.com/questions/65717444/c-sharp-creating-an-object-thats-named-as-sometextbox-text-in-windows-forms

Content Attribution

This content was originally published by czarson at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: