Skip to content

Instantly share code, notes, and snippets.

@Blizzardo1
Created May 29, 2023 22:32
Show Gist options
  • Save Blizzardo1/37e7c5738728c4a3be09093fec175b20 to your computer and use it in GitHub Desktop.
Save Blizzardo1/37e7c5738728c4a3be09093fec175b20 to your computer and use it in GitHub Desktop.
public static T Add<T>(T a, T b) where T : struct, IEquatable<T>, IComparable<T>, IConvertible
{
return (dynamic)a + (dynamic)b;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment