Skip to content

Instantly share code, notes, and snippets.

@sjehutch
Created July 5, 2019 13:22
Show Gist options
  • Save sjehutch/af9cf27c4926c28877e72844f27e5740 to your computer and use it in GitHub Desktop.
Save sjehutch/af9cf27c4926c28877e72844f27e5740 to your computer and use it in GitHub Desktop.
Sample Generic T
using System;
namespace console1
{
public class Systems
{
public static bool GetEqual<T>(T a, T b) where T : IComparable<T>
{
return a.CompareTo(b) == 0;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment