I have a class called Target and I create a method and want another method to be created inside like this:
Expand|Select|Wrap|Line Numbers
- public void move()
- {
- public void right()
- {
- location.offset(5, 0);
- }
- }
Expand|Select|Wrap|Line Numbers
- Target myTarget = new Target();
- if (e.KeyData == Keys.Right)
- {
- myTarget.move.right();
- }
PS- if you need more information, please say so