I couldn\'t really find anything on this exact topic, so please lead me toward the right direction, if a question already exists.
From what I have learned about .NET, it
I'm a bit late and the answer @Eric J. gave is wonderful and to the point.
I just want to add a bit of clarity to another issue in your perception of threads and variables.
You said this in your question's title "variable be accessed in another thread". Adding to that is the fact that in your code, you're accessing your variable from exactly 1 thread which is the thread that gets created here:
Thread thread = new Thread(new ThreadStart(DoSomething));
thread.IsBackground = true;
thread.Start();
All these things made me realize that you were scared that a thread different from the one that actually creates the instance of MyClass
will use something from inside that instance.
The following facts are important for a clearer view of what multithreading is (it's simpler that you thought):
EDIT
I see the words thread safety appeared on this thread of answers. In case you're maybe wondering what those words mean I recommend this great article by @Eric Lippert: http://blogs.msdn.com/b/ericlippert/archive/2009/10/19/what-is-this-thing-you-call-thread-safe.aspx