Skip to content

Instantly share code, notes, and snippets.

@yetanotherchris
Created February 9, 2013 18:11
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 yetanotherchris/4746383 to your computer and use it in GitHub Desktop.
Save yetanotherchris/4746383 to your computer and use it in GitHub Desktop.
Visibility example
internal class FooBarDaddy
{
public void Run()
{
Foobar1 fb = new Foobar1();
}
/// Only accessible inside FooBarDaddy
private class Foobar1
{
/// Only accessible inside Foobar1
private interface IFoo
{
}
/// Only accessible inside Foobar1
private struct Foobar2
{
/// Only accessible inside Foobar2
private struct Foobar3
{
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment