public void ResetValueToDefault() { switch (_assignmentType) { case AssignmentType.Constant: break; case AssignmentType.GlobalVariable: _globalVariable.ResetValueToDefault(); break; case AssignmentType.PersonalVariable: _instancedVariable.GetVariable(IDToken).ResetValueToDefault(); break; default: throw new System.ArgumentOutOfRangeException(); } }