Cannot display the value of protected internal variable

I have this code in Assembly1:

Code:

using System;
using sample;

namespace ConsoleApp1
{
    class Test:Customers
    {
        public void Display()
        {
            Console.WriteLine(a);
        }
    }
    class Program
    {
        static void Main()
        {
            Test t = new Test();
            t.Display();
            Console.ReadLine();
        }
    }
}

Then in a different assembly (i.e. Assembly2) I have this code.

Code:

using System;
namespace sample
{
    public class Customers
    {
        protected internal int a = 10;
    }
    class Program
    {
        static void Main()
        {
        }
    }
}

Assembly1 has a reference to Assembly2.
When I run the code in Assembly1, the output is blank whereas I thought it would display the value of “a” which is 10.
Why is it not working? Oxygen XML Forum - Index page?

Hi,
Wix Code supports only java script.
Roi.