Skip to content

Instantly share code, notes, and snippets.

@polatengin
Created October 9, 2016 04:32
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 polatengin/5851e2e34124f8c6a15b1a6b97b1cdd0 to your computer and use it in GitHub Desktop.
Save polatengin/5851e2e34124f8c6a15b1a6b97b1cdd0 to your computer and use it in GitHub Desktop.
C#’ta assembly: InternalsVisibleToAttribute kullanımı
using Kutuphane;
namespace InternalsVisibleToTest
{
class Program
{
static void Main(string[] args)
{
var vt = new VeritabaniErisimi();
}
}
}
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("InternalsVisibleToTest")]
namespace Kutuphane
{
internal class VeritabaniErisimi
{
}
}
namespace Kutuphane
{
internal class VeritabaniErisimi
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment