How to create method that receive and return generic type?
I have to pass two different types to the same method.
public List<Type1> param1 = new List<Type1>();
public List<Type2> param2 = new List<Type2>();
List<Type3> var1 = MergeFoundSigns(param1);
List<Type4> var2 = MergeFoundSigns(param2);
public Type MergeFoundSigns(List<T> param)
{
"some logic"
}
Any idea how can I implemet the method above?
Thank you in advance!
If you know what the types will be: