How can I make a variable accessible to another class within the same project?
<p>I have a variable (<code>PrincipleIndex</code>) in a class (<code>Principles.cs</code>) in one C# project (<code>..\Bullseye\Biz Logic\Trading\Principle\Data\Principles.cs</code>).</p>

<pre><code>int PrincipleIndex = Principles.Instance.RowIndexToPrincipleIndex(hti.Row);
</code></pre>

<ol>
<li><code>Principles</code> is a class with singleton design pattern </li>
<li><code>RowIndexToPrincipleIndex(hti.Row)</code> - taking out row from a property grid </li>
</ol>

<p>I want to make <code>PrincipleIndex</code> accessible to another class (<code>TradingCentralForm.cs</code>) within the same C# project, specifically, here:</p>

<pre><code>principlesList.Select(p =&gt; p.GetInstanceForDatabase()).Where(p =&gt; p.Note == Principles.Instance[PrincipleIndex].Note).ToList()
</code></pre>

<p>However, <code>PrincipleIndex</code> is not accesible there.</p>

<p>I tried to make the variable <code>public</code> in <code>principle.cs</code> but it is not working. How can I properly make it accessible?</p>

<hr>

<p>principle.cs:</p>

<pre><code>internal class Principles
{
    #region Singelton

    private static readonly Principles instance;
    public static Principles Instance
    {
        get { return instance; }
    }
    static Principles()
    {
        instance = new Principles();
    }
    private Principles()
    {
        PrincipleIndicesTranslator.SetTranslatorMethod(UniqueName);
    }

    #endregion
</code></pre>

<hr>
