Created
October 15, 2013 18:15
-
-
Save Fhernd/6996098 to your computer and use it in GitHub Desktop.
Declaración de un constructor estático 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
public class Computador | |
{ | |
static Computador () | |
{ | |
// sentencias de inicialización de miembros estáticos | |
// otras operaciones de inicialización | |
Console.WriteLine ("El tipo se ha inicializado."); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment