# How to modify Game1.cs out of an object it contains? [closed]

Assuming I Have a List<SomeClass> myList; in my Game1-class. It also contains an object of SomeOtherClass otherClass;. How would I modify myList (Add/Remove) out of the otherClass's logic? Or in other words how to get access to the Game1-instance in this situation?

## closed as off-topic by Trevor Powell, Anko, bummzack, MichaelHouse♦Jun 25 '14 at 16:17

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "Programming questions that aren't specific to game development are off-topic here, but can be asked on Stack Overflow. A good rule of thumb is to ask yourself "would a professional game developer give me a better/different/more specific answer to this question than other programmers?"" – Trevor Powell, Anko, bummzack, MichaelHouse
If this question can be reworded to fit the rules in the help center, please edit the question.

• I consider this a XNA specific question as the Game1-Class might have some methods/functions, other C#-classes do not. – チーズパン Jun 30 '14 at 5:58