So, I started learning C# recently and needed a way to "link" 2 objects together so if I am given 1 of them, I can get its corresponding one.
For example, if I have a Button in a TabPage, and I am given one of them I can get the other.
The first thing that came to mind was putting them in an arrays with the same index, but I want to know if there is a better way of doing this.
Thanks in advance
For example, if I have a Button in a TabPage, and I am given one of them I can get the other.
The first thing that came to mind was putting them in an arrays with the same index, but I want to know if there is a better way of doing this.
Thanks in advance