Pass a variable from one file to another c#
<p>I have two .cs files (<code>Hex2Bin.cs</code> and <code>Program.cs</code>) and I want to pass the variable <code>end_addr</code> from <code>Program.cs</code> to <code>Hex2Bin.cs</code></p>

<p>My code in Program.cs:</p>

<pre><code>class Program
{
    enum to_exit {
        exit_ok = 0,
        exit_invalid_args,
        exit_to_few_args,
        exit_invalid_input_file,
        exit_invalid_args_file,
        exit_permission_denied,
        exit_unexpected_eof
    };

    // class value holders
    static String args_file_name = "";
    static String in_u1_name = "";
    static String in_u22_name = "";
    static String out_name = "";
    static short end_addr = 0x0000;                 // 4-digit Hexadecimal end address
    static Byte[] version_code = { 0, 0, 0, 0 };    // 3 bytes version, 1 for extra info
}
</code></pre>

<p>Is there anyway I could do this? I know how to do it in c, but I'm very new to c#. Thanks.</p>
