Created
April 27, 2014 23:41
-
-
Save Fhernd/11358195 to your computer and use it in GitHub Desktop.
Demostración modificador de acceso protected internal 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: ModificadorAccesoprotectedinternal.cs | |
// | |
// Propósito: Demostrar el uso de protected internal. | |
// | |
============================================================*/ | |
namespace AssemblyA | |
{ | |
public class A | |
{ | |
protected internal string Metodoprotectedinternal() | |
{ | |
return "String"; | |
} | |
} | |
public class B : A | |
{ | |
public string NuevoMetodo() | |
{ | |
return Metodoprotectedinternal(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment