Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class GenericoPersonalizado<T> where T : IEquatable<T>
- {
- public bool EsIgual(T a, T b)
- {
- // Sin uso de boxing sobre el tipo genérico T:
- return a.Equals(b);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement