Created
May 7, 2012 16:48
-
-
Save ianbishop/2628908 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ListBox list = null; | |
| switch (direction) | |
| { | |
| case ConversionDirection.TO: | |
| list = toUnitList; | |
| break; | |
| case ConversionDirection.FROM: | |
| list = fromUnitList; | |
| break; | |
| } | |
| if(list != null) | |
| list.SelectedIndex = -1; | |
| "Use of unassigned local variable 'list'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment