c# property inaccessabile
Why can I not have a private `struct` and then create a public property from it?

I get an 'property PubTest is less accessible then test' when I compile.

EG:

    private struct test
    {
        int a;
        double b;
    }
    
    test t = new test();
    
    public test PubTest
    {
         get { return t; }
    }


c# property inaccessabile
===

Why can I not have a private `struct` and then create a public property from it?

I get an 'property PubTest is less accessible then test' when I compile.

EG:

    private struct test
    {
        int a;
        double b;
    }
    
    test t = new test();
    
    public test PubTest
    {
         get { return t; }
    }

