Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created April 27, 2014 23:41
Show Gist options
  • Save Fhernd/11358195 to your computer and use it in GitHub Desktop.
Save Fhernd/11358195 to your computer and use it in GitHub Desktop.
Demostración modificador de acceso protected internal en C#.
// ===++===
//
// 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