P
puzzlecracker
It looks like static classes can have non-static member classes --
does it make sense what I just wrote? If not, let me illustrate it:
public static class Foo{
private struct Bar{
}
}
I wonder why this is allowed.
Also, what is the difference between static and non-static nested
classes?
public class Foo{
private class Bar
{
}
}
vs.
public class Foo{
static private class Bar
{
}
}
thanks
does it make sense what I just wrote? If not, let me illustrate it:
public static class Foo{
private struct Bar{
}
}
I wonder why this is allowed.
Also, what is the difference between static and non-static nested
classes?
public class Foo{
private class Bar
{
}
}
vs.
public class Foo{
static private class Bar
{
}
}
thanks