Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fhernd/11337521 to your computer and use it in GitHub Desktop.
Save Fhernd/11337521 to your computer and use it in GitHub Desktop.
Demostración de la implementación de interfaces en structs en C#.
// ===++===
//
// OrtizOL
//
// ===--===
/*============================================================
//
// Clase: ManipulacionCadenas.cs
//
// Propósito: Demostrar el uso uso eficiente de StringBuilder
//
============================================================*/
interface IImagen
{
void Dibujar();
}
struct Dibujo : IImagen
{
private int x;
private int y;
public void Dibujar()
{
// Implementación para dibujar
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment