0

So Im getting back into c# again, and I encountered the following issue :

I want to create a generic function that can recieve one of two types, something around these lines :

public void Remove<T> (T inputValue) where T : (int or string)

I was quite surprised that I couldnt find any straight forward solution to this.

Appreciate your help or a link to somewhere the topic has been touched. Thanks!

Rohi
  • 814
  • 1
  • 9
  • 26

0 Answers0