Is it possible that the nested class is public, but can only be created by its parent class, for example
public class parent { public class child { public string someValue; } public child getChild() { return new child(); } }
in this example, the "child" class can be instantiated with code external to the "parent". I want external code to be able to view the "child" type, but not be able to create its own.
eg
var someChild = new parent.child();
source share