Results 1 to 4 of 4

Thread: [RESOLVED] [2.0] make a variable only accessable by the class it is in?

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    Resolved [RESOLVED] [2.0] make a variable only accessable by the class it is in?

    I have a class formatted like below

    Code:
    class MyDll
    {
    class A_SubClass
    {
    public string A = "Access Me";
    public string B = "Access Me";
    public string z = "Don't Access Me";
    }
    class B_SubClass
    {
    public string A = new A_SubClass().z;
    }
    }
    I want to have it so when using the dll I can't access "z" but I can access "z" from "B_SubClass" inside the dll.
    Last edited by high6; Jul 5th, 2008 at 04:30 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width