Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created May 22, 2014 23:02
Show Gist options
  • Save Fhernd/c599ac0c4b189a7c7dbc to your computer and use it in GitHub Desktop.
Save Fhernd/c599ac0c4b189a7c7dbc to your computer and use it in GitHub Desktop.
Demostrar la creación de una interfaz genérica en C#.
// ===++===
//
// 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