I am doing a test project to learn about XML serialization of an object, and I am getting an odd runtime error:
namespace SerializeTest
{
public partial class F
The Class is public
No it's not. Here's the declaration:
class Conn
{
...
}
You haven't specified any access modifiers, so it's defaulting to internal
(assuming it's non-nested). Just because it's got a public constructor doesn't make it public. You need to make it public explicitly:
public class Conn
{
...
}