Skip to content

Instantly share code, notes, and snippets.

@shoupn shoupn/GenericMethod.cs
Last active Feb 18, 2019

Embed
What would you like to do?
public T Add<T> (T num1, T num2)
{
dynamic a = num1;
dynamic b = num2;
return a + b;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.