Created
June 7, 2014 03:44
-
-
Save Fhernd/205d830f24dcd7ef7061 to your computer and use it in GitHub Desktop.
Decoración de assembly y clases con el atributo personalizado AutoAttribute 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
using System; | |
// Especificamos que el autor de este assembly es Valentina: | |
[assembly: Recetas.Cap03.AutorAttribute("Valentina", Organizacion = "OrtizOL")] | |
namespace Recetas.Cap03 | |
{ | |
// Establecemos como autora de la clase Valentina: | |
[AutorAttribute("Valentina", Organizacion = "OrtizOL")] | |
public class Orden | |
{ | |
// Implementación... | |
} | |
// Establecemos dos autores para la clase `Producto`: | |
[AutorAttribute("Valentina", Organizacion = "OrtizOL")] | |
[AutorAttribute("Juan", Organizacion = "OrtizOL")] | |
public class Producto | |
{ | |
// Implementación... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment