I have the following situation:
public class CustomDataGridView<T> : DataGridView
{
method1();
...
}
class ChannelsDataGridView : CustomDataGridView<Channel>
{
...
}
class NetworksDataGridView : CustomDataGridView<Network>
{
...
}
and I need method:
public void Method(TYPE sender)
{
sender.method1();
}
What should be the TYPE in this method or how could I achieve this functionality?
It appears you want a generic method:
Note if this is in a generic class that already uses
T
for a generic parameter than you should use a different letter: