Created
May 22, 2014 23:02
-
-
Save Fhernd/c599ac0c4b189a7c7dbc to your computer and use it in GitHub Desktop.
Demostrar la creación de una interfaz genérica en C#.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ===++=== | |
// | |
// OrtizOL | |
// | |
// ===--=== | |
/*============================================================ | |
// | |
// Clase: IOperacionesBinarias.cs | |
// | |
// Propósito: Demostrar la creación de una interfaz genérica. | |
// | |
============================================================*/ | |
using System; | |
namespace Articulos.Cap03 | |
{ | |
public interface IOperacionesBinarias<T> | |
{ | |
T Sumar(T a, T b); | |
T Restar(T a, T b); | |
T Multiplicar(T a, T b); | |
T Dividir(T a, T b); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment